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

event + additem + setattribute?

Status
Not open for further replies.

Dominik ms

Member
Joined
Jan 20, 2010
Messages
424
Reaction score
6
Potrzebuję cos takiego:
Dostaje przedmiot po upływie np 4 sekundach ze zmienionymi atrybutami, czy to jest możliwe?? Czy bug w silniku??
PHP:
Local additem = addEvent(doPlayerAddItem, 4000, cid, 3526)
addEvent(doItemSetAttribute, 4000, additem, "aid", 1808)
I nie hula
Próbowałem zapisać pid nowego przedmiotu w storage, lecz sie nie da
 
w additem masz eventa a nie item ?
 
Tzn??
Musze mieć dwa eventy, bo albo dostanę od razu item, albo bedzie chcial zmienić atrybuty jak jeszcze go nie dostalem
 
napisz sobie funkcje, ktora doda item i ustawi Ci atrybut. Wywolaj jeden addevent na ta funkcje.
 
LUA:
local function dawajItemaPls(pid)
item = doPlayerAddItem(pid, 3526)
doItemSetAttribute(item.uid, "aid", 1808)
end

LUA:
addEvent(dawajItemaPls, 4000, cid)

heh
 
Status
Not open for further replies.
Back
Top