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

SQM wymagający dane itemy.

Dała, dała, ale mapkę musiałem zmienić.


@edit
Boże, ale ze mnie idiota. Już chyba wiem w czym leży problem. Powinienem zastępować id itemków w kolejności od najmniejszej do największej(albo odwrotnie), a ja to id obojętnie jak podawałem. Jutro spróbuję w kolejności.

Lua Code:
local pos = getPlayerPosition(cid) local tppos = {x=32522, y=32252, z=1} local config = { id1 = 10140,
id2 = 10136,
id3 = 10133 } function onStepIn(cid, item, fromPosition, item2, toPosition) if ((getPlayerItemCount(cid, config.id1) < 1) or (getPlayerItemCount(cid, config.id2)) < 1 or (getPlayerItemCount(cid, config.id3) < 1)) then doTeleportThing(cid, tppos) doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Nie masz ktoregos z 3 medali. (Wieza Demodrasa, Demony w poludniowym Thais, Arena Grim Reaperow.)") end return true end

Zrobiłem coś takiego i teraz działa. :D
 
Last edited by a moderator:
Back
Top