Czopeq
Advanced User
- Joined
- Jun 29, 2015
- Messages
- 191
- Reaction score
- 6
Hello, pr?buj? od d?u?szego czasu zrobi? funkcj? kt?ra sprawdza czy gracz ma exhaustion... jak ma to dostaje efekt jak nie to nie... Ale co? mi nie wychodzi ;d
pr?buje z czym? takim:
[LUA]function onThink(interval)
local players = getPlayersOnline()
for _, cid in ipairs(getPlayersOnline()) do
if exhaustion.get(cid, 12345) == true then
doSendMagicEffect(getPlayerPosition(cid), 12)
end
end
return true
end[/LUA]
Do spella doda?em to: exhaustion.set(cid, 12345, 20)
Efektu niema, b??du niema... jak daj? na "false" Efekt jest, ale dla ka?dego gracza czy u?yje spella czy nie.
Kto? co??
pr?buje z czym? takim:
[LUA]function onThink(interval)
local players = getPlayersOnline()
for _, cid in ipairs(getPlayersOnline()) do
if exhaustion.get(cid, 12345) == true then
doSendMagicEffect(getPlayerPosition(cid), 12)
end
end
return true
end[/LUA]
Do spella doda?em to: exhaustion.set(cid, 12345, 20)
Efektu niema, b??du niema... jak daj? na "false" Efekt jest, ale dla ka?dego gracza czy u?yje spella czy nie.
Kto? co??