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

need HELPPPP!(still need help)

Doggynub

LUA / C++
Joined
Sep 28, 2008
Messages
2,541
Reaction score
186
if i have somthng like that

Code:
doPlayerAddSummon(cid, "king kong", getPlayerPosition(cid))


this will summon a creature and convince it.




how to refer to this summoned monster when writing script, like if i want to remove this sumoned creature what to write in

Code:
doRemoveCreature([B][I][COLOR=red]here)[/COLOR][/I][/B]
 
Lua:
			getCreatureSummons(cid)
				Info
					This functions checks for creature summons list.

				Returns
					false if creature not found, otherwise table with creatures list (NOTE: Can be empty!)

				Example
					local summons = getCreatureSummons(cid)
					if(table.maxn(summons) <= 0) then -- no summons
						doPlayerSendCalcel(cid, "You don't have any summons..")
						return false
					end

					-- remove all summons ;)
					for _, pid in ipairs(summons) do
						doRemoveCreature(pid)
					end
 
humm.. i know that GetCreatureSummons(cid) must get the summoned creature but i get error creature not found ?

doesnt this summon a monster?
Code:
function doPlayerAddSummon(cid, name, pos)

    local MyCreature = doSummonCreature("king kong", getPlayerPosition(cid))    
    doConvinceCreature(cid, MyCreature)
    return MyCreature
end
function onUse(cid, item, frompos, item2, topos)
doPlayerAddSummon(cid, "king kong", getPlayerPosition(cid))
return TRUE
end


or the sumoned isnt considred from player summons lol ?
 
Back
Top