• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

doCreateItem(7585,1,pos) w addEvent

Verdis

Ciekawy świata.
Joined
May 28, 2012
Messages
394
Reaction score
9
Location
Poland
Siemka wie ktoś jak zrobić aby item pojawiał się po określonym czasie od użycia przedmiotu ?
function transform4()
doBroadcastMessage("It works!", MESSAGE_EVENT_ADVANCE)
doCreateItem(7585,1,pos)
doItemSetAttribute("aid", 1014)
pos = {x=33178, y=31862, z=12}
end



........ if (itemEx.itemid == 7585) then
if itemEx.actionid == 1012 then
doSendMagicEffect(fromPosition, 14)
doTransformItem(itemEx.uid,7536)
doCreateMonster("Giant Spider", giant)
setPlayerStorageValue(cid, quest2, 1)
addEvent(transform2, 3 *1000)
end.........
 
Podstawowe błędy xd

doCreateItem(7585,1,pos)
pos = {x=33178, y=31862, z=12}

Najpierw tworzysz item, a potem podajesz pozycję gdzie ma ją zrobić?

doItemSetAttribute("aid", 1014)
Ale czego? Musisz podać uid.

function transform4()
pos = {x=33178, y=31862, z=12}

doBroadcastMessage("It works!", MESSAGE_EVENT_ADVANCE)

local item = doCreateItem(7585, 1, pos)
doItemSetAttribute(item.uid, "aid", 1014)
end

item.uid lub samo item, nie pamiętam jaki jest return tej funkcji.
 
Back
Top