• 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!

Gdzie ustawic ilosc summonow

Keeq

New Member
Joined
Nov 6, 2012
Messages
100
Reaction score
0
Siema, mam problem poniewaz chce zrobic na swoim serwerze SUMMONY i mam skrypt ale np. robie 2 pliki z tymi skryptami na 2 inne sumony i ino 1 moge wyczarowac a nie 2 i czy pomoze ktos mi zrobic tak by sie dalo te 2 lub wiecej ? ale ze nie mozna tego samego peta zrobic 2 razy
local function f(c)
if isMonster(c) then
doRemoveCreature(c)
end
end

local summonName = "SUMMON"
local summonTime = 30
function onCastSpell(cid, var)
local p = getThingPos(cid)
if getTileInfo(p).protection then
doCreatureSay(cid, 'You cannot summon in PZ!', 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 = doSummonMonster(cid, summonName)
if r == 1 then
doSendMagicEffect(getPlayerPosition(cid), 223)
doPlayerSendCancel(cid, getMonsterInfo(summonName).nameDescription .." is ready to help you.")
addEvent(f, summonTime*1000, getCreatureSummons(cid)[1])
return true
else
doPlayerSendDefaultCancel(cid, r)
end
end
end

- - - Updated - - -

Help me ? :D dam repa za pomoc ziomki
 
Back
Top