Code: Select all
player:openStore(112945,3)
Code: Select all
if skillnum == 4 then
player:openStore(112944,3)
else
player:openStore(112945,3)
end
Code: Select all
player:openStore(112945,3)
Code: Select all
if skillnum == 4 then
player:openStore(112944,3)
else
player:openStore(112945,3)
end
Code: Select all
if skillnum == 4 or skillnum == 5 then
player:openStore(112944,3)
else
player:openStore(112945,3)
end
Code: Select all
-- player:openStore(112945,3)
if skillnum == (2 or 3 or 4) then
player:openStore(112944,3)
else
player:openStore(112945,3)
end
--
rock5 wrote:What that syntax says is, go to npc 112944 when skillnum = 4 or 5, otherwise go to 112945. Is that what it's supposed to do?
Code: Select all
player:openStore(112945,3)
Code: Select all
player:openStore(crafttable[skillnum].npc,3)
Code: Select all
Enter the number of your choice: 3
You chose 3 - Blacksmithing.
Clear target.
Clear target.
NPC not targeted. Clearing 'store'.
Invalid selection used in 'player:getCraftLevel'The game client did not crash.
Character: xxx
2016-06-28 14:50:58 - [string "..."]:107: attempt to compare nil with number
Users browsing this forum: No registered users and 14 guests