Gitu123
Senior User
- Joined
- Jun 25, 2009
- Messages
- 700
- Reaction score
- 22
PHP:
local t = {
storage = 3201,
monster = {"Rotworm", {x=4028, y=4046, z=7}},
}
function onStepIn(cid, item, position, fromPosition)
if ((getPlayerStorageValue(cid, t.storage) < 1) and isPlayer(cid)) then
doSummonCreature(t.monster[1], t.monster[2])
end
return TRUE
end