• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

CreatureEvent Reputation for killing monsters, players.

The custom monster rep script its bugged .. when i kill a monster this error comes
[23:15:45.176] [Error - CreatureScript Interface]
[23:15:45.176] data/creaturescripts/scripts/reputation from monsters.lua:eek:nKill
[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>
and the monster dont die its stand on the place and are stuck no hp shows
 
can you make so you get the rep depending on skull and level? for example 10 lvl higher you get more then if it's 10 level lower. Thanks!
 
I get the following error:

Lua script error: [CreatureScript Interface]
data/creaturescripts/scripts/reputation from monsters.lua:eek:nKill

attempt to call global 'getcreatureskulltype' <a nil value>
 
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?
 
Hello man, I liked your reputation system, so I made item buying script, if you like it you can put in your topic xD
the Talkaction script is:

TESTED IN 0.4 Dev
Code:
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
Code:
 <talkaction words="!command" script="script.lua"/>

Configuration:
XXXX = Total points of reputation used for buy the item
YYYY = Item name
ZZZZ = Item ID

thanks for the script
 
Back
Top