Teddy
SweStream.se
but i wonder if this thread works on 0.4``?
and the monster dont die its stand on the place and are stuck no hp shows[23:15:45.176] [Error - CreatureScript Interface]
[23:15:45.176] data/creaturescripts/scripts/reputation from monsters.luanKill
[23:15:45.192] Description:
[23:15:45.192] ...creaturescripts/scripts/reputation from monsters.lua:16: attem
pt to index field '?' (a nil value)
[23:15:45.192] stack traceback:
[23:15:45.192] ...creaturescripts/scripts/reputation from monsters.lua:16: in f
unction <...creaturescripts/scripts/reputation from monsters.lua:1>
function onSay(cid, words, param)
local storage = 666
local reputation = getPlayerStorageValue(cid,storage)
if getPlayerStorageValue(cid,storage) >= XXXX then
setPlayerStorageValue(cid, storage,reputation + -XXXX)
doPlayerAddItem(cid,ZZZZ,1)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MORTAREA)
doCreatureSay(cid, "I bought YYYY for XXXX reputation points", TALKTYPE_ORANGE_1)
else
doPlayerSendCancel(cid, 'You don't have XXXX reputation points..')
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_FLAMEAREA)
end
end
<talkaction words="!command" script="script.lua"/>
Hello, I'm using OTServ no bugs and shit. if i do !reputation i see ur rep is -1 wtf? i kilt alrdy like hydras demons and shit. But it keeps -1 What did i wrong?