• 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!

Lua Does anyone know how to fix this NPC? :)

@Zysen
Thanks for your so fast answer, but the script u gave me will sell those runes / wands etc. for cash.
I need this NPC selling me those runes ( only runes because I do not need wands, rods etc. ) just those runes I wrote in the script for an item ID - 6527 - christimans tokens.

It can't be cash for those runes, just the tokens and have no clue how to get it working.
I've made it working with sd's but I have no clue why I ask for paralyze, explo it sells me bp with sd's instead of paralyze or explo :S

EDIT:

I am using TFS 0.3.6 ( Crying Damson ) console for 8.54
 
Hey I gotta go.Try to do a talkaction (it's easier):


LUA:
local price = 50 


function onSay(cid, words, param)
if doPlayerRemoveItem(cid, 6527, 50) then
       doPlayerAddItem(cid, 2268, 1) -- add for all runes and add to buy with bp
            doPlayerSendTextMessage(cid,22,"You've just purchased an bp of .... for ".. price .." christmas tokens.")
else
   	doPlayerSendCancel(cid, "You don't have enough christmas tokens to buy an bp of ....")
             doSendMagicEffect(getPlayerPosition(cid),2)		
	end
return true
end
 
@Zysen
Well dude thanks for trying to help me. If nobody will know how to fix / help me with this NPC I prolly gonna use talkactions :S But I would so, so prefer NPC

Repped ya for trying to help me, because as far as I see only you're trying to help me :)
 
Sorry guys I had to go and now I am back :)

@M4t30
This script should automatically know what rune NPC is selling cuz of "getitemnamebyid" and then choose from config v.rune
 
Last edited:
Back
Top