• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved 0.3.7, getPlayerVocationName = failure.. why?

  • Thread starter Thread starter Xikini
  • Start date Start date
X

Xikini

Guest
TFS 0.3.7

First print, prints "wizard" in console.
However print(2) never executes.
Anyone know why?

ActionID is used in actions.xml,
ActionID is applied to itemID 8834 in-game.
Use itemID 8834, and console only prints "wizard" not "2".
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
   if item.itemid == 8834 then -- 9422  3739  8836
     print(getPlayerVocationName(cid):lower())
     if getPlayerVocationName(cid):lower() == wizard then
       print(2)
     end
   end
   return true
end

Thanks,

Xikini
 
Back
Top