Jaed Le Raep
★Gaeming★
- Joined
- Sep 3, 2007
- Messages
- 1,296
- Reaction score
- 441
Hey guys, I've had this script but it's a bit wonky. Basically, it summons monsters as a convince, so that it bypasses the game's summons system. However, I'd like some changes to be implemented into it that I haven't gotten to work. Please note that this is a spell script for a rune.
Whenever a player has 1 summon already, if they use the rune again, then the summon will be unsummoned, rather than that "No more than 1 summon" message appearing.
Whenever a player is level 5, 10, and 15, a different summon will be summoned based on that level.
Also, with this re-write, please make it more understandable. For me, it's not very much in lamans terms, so I have a hard time reading the script (hence why I can't edit it myself, considering how easy the edits I'm requesting are).
@Ninja @Limos
Whenever a player has 1 summon already, if they use the rune again, then the summon will be unsummoned, rather than that "No more than 1 summon" message appearing.
Whenever a player is level 5, 10, and 15, a different summon will be summoned based on that level.
Code:
local function f(c)
if isMonster(c) then
doRemoveCreature(c)
end
end
function onCastSpell(cid, var)
local p = getThingPos(cid)
if getTileInfo(p).protection then
doCreatureSay(cid, 'You cannot summon in a Protection Zone!', TALKTYPE_ORANGE_1, false, cid, p)
doSendMagicEffect(p, CONST_ME_POFF)
elseif #getCreatureSummons(cid) ~= 0 then
doPlayerSendCancel(cid, 'You can\'t summon more than one.')
doSendMagicEffect(p, CONST_ME_POFF)
else
local r = doSummonCreature('Furi', getPlayerPosition(cid))
if r ~= false then
Monster(r):setMaster(cid)
doSendMagicEffect(p, CONST_ME_MAGIC_BLUE)
addEvent (doCreatureSay, 2, cid, "I weave between the realms and call forth a Furi worthy of my calling! Come to your deity at once!", TALKTYPE_YELL)
return true
else
doPlayerSendDefaultCancel(cid, r)
end
end
return false
end
Also, with this re-write, please make it more understandable. For me, it's not very much in lamans terms, so I have a hard time reading the script (hence why I can't edit it myself, considering how easy the edits I'm requesting are).
@Ninja @Limos
Last edited: