Thunder Beam
New Member
- Joined
- Apr 23, 2008
- Messages
- 107
- Reaction score
- 0
Hello,
I need some help with this script, I want it to summon a monster (Diseased Bill) who can help? rep ++!
Thanks !
Thunder Beam
I need some help with this script, I want it to summon a monster (Diseased Bill) who can help? rep ++!
Code:
function onUse(cid, item, frompos, item2, topos)
local config = {
storage = 5566, -- Storage Value
monster = "Diseased Bill", -- Name of the monster
message = "You wake up\'d Diseased Bill!", -- Message when you summon the monster
cancelMessage = "You\'ve already wake\'d him up." -- Message if youve already summoned a monster
}
if getPlayerStorageValue(cid, config.storage) == -1 then
doSummonCreature(cid, config.monster)
setPlayerStorageValue(cid, config.storage, 1)
doPlayerSendTextMessage(cid, 19, config.message)
else
doPlayerSendCancel(cid, config.cancelMessage)
end
end
Thanks !
Thunder Beam