Przerabiam silnik WoDBO, a jak wiadomo to server Dragon Ball. Co to za DB bez smoka? Smoka mam, kule mam, smok si? pojawia, tylko chcia?bym zrobi? radar, kt?ry umo?liwii nam szukanie tych kul (b?d? je raz na kilka dni rzuca? po mapie). W silniku jest ju? radar i jest ju? skrypt tylko, ?e nie dzia?a - wiem chyba dlaczego, ale nic nie m?wi?, ?eby Was z tropu nie zbija?. Zawsze jak si? kliknie na radar to pisze "Radar Cant find the Dragon Ball.". Oto skrypt:
).
#Edit
Pami?tajcie, ?e ja te kule chc? rozrzuca? po mapie, a nie respi? w konkretnych miejsach - my?l?, ?e trzeba b?dzie pisa? new skrypt i tylko elementy wzi?? z tego.
aaaaaa i autorem tego jest oczywi?cie WoDBO team, a nie ja
Za pomoc reput + podzi?kowanie (nie b?d?cie materialistami i pom??cie bez kasyfunction onUse(cid, item, frompos, item2, topos)
kula1 = {x=83, y=377, z=7, stackpos=1}
getpiece1 = getThingfromPos(kula1)
player = getPlayerPosition(cid)
if item.itemid == 2062 and getpiece1.itemid == 2625 then
if player.x > 700 then
doPlayerSendTextMessage(cid,22,"Dragon Ball is on Earth.")
elseif player.z > kula1.z and (player.y - kula1.y) <= 3 and (player.y - kula1.y) > -3 then
doPlayerSendTextMessage(cid,22,"Dragon Ball is above you.")
elseif player.z < kula1.z and (player.x - kula1.x) <= 3 and (player.x - kula1.x) > -3 then
doPlayerSendTextMessage(cid,22,"Dragon Ball is below you.")
else
if player.x > kula1.x then
if player.y > kula1.y then
if (player.y - kula1.y) >= 3 then
if (player.x - kula1.x) >= 1 then
doPlayerSendTextMessage(cid,22,"Dragon Ball is to the north-west.")
else
if (player.y - kula1.y) <= 10 then
doPlayerSendTextMessage(cid,22,"Dragon Ball is to the north.")
else
doPlayerSendTextMessage(cid,22,"Dragon Ball is far to the north.")
end
end
else
if (player.x - kula1.x) <= 10 then
doPlayerSendTextMessage(cid,22,"Dragon Ball is to the west.")
else
doPlayerSendTextMessage(cid,22,"Dragon Ball is far to the west.")
end
end
elseif player.y < kula1.y then
if (kula1.y - player.y) >= 3 then
if (kula1.x - player.x) >= 1 then
doPlayerSendTextMessage(cid,22,"Dragon Ball is to the south-west.")
else
if (kula1.y - player.y) <= 10 then
doPlayerSendTextMessage(cid,22,"Dragon Ball is to the south.")
else
doPlayerSendTextMessage(cid,22,"Dragon Ball is far to the south.")
end
end
else
if (player.x - kula1.x) <= 10 then
doPlayerSendTextMessage(cid,22,"Dragon Ball is to the west.")
else
doPlayerSendTextMessage(cid,22,"Dragon Ball is far to the west.")
end
end
else
doPlayerSendTextMessage(cid,22,"Dragon Ball is to the west.")
end
elseif player.x < kula1.x then
if player.y > kula1.y then
if (player.y - kula1.y) >= 3 then
if (kula1.x - player.x) >= 1 then
doPlayerSendTextMessage(cid,22,"Dragon Ball is to the north-east.")
else
if (player.y - kula1.y) <= 10 then
doPlayerSendTextMessage(cid,22,"Dragon Ball is to the north.")
else
doPlayerSendTextMessage(cid,22,"Dragon Ball is far to the north.")
end
end
else
if (kula1.x - player.x) <= 10 then
doPlayerSendTextMessage(cid,22,"Dragon Ball is to the east.")
else
doPlayerSendTextMessage(cid,22,"Dragon Ball is far to the east.")
end
end
elseif player.y < kula1.y then
if (kula1.y - player.y) >= 3 then
if (kula1.x - player.x) >= 1 then
doPlayerSendTextMessage(cid,22,"Dragon Ball is to the south-east.")
else
if (kula1.y - player.y) <= 10 then
doPlayerSendTextMessage(cid,22,"Dragon Ball is to the south.")
else
doPlayerSendTextMessage(cid,22,"Dragon Ball is far to the south.")
end
end
else
if (kula1.x - player.x) <= 10 then
doPlayerSendTextMessage(cid,22,"Dragon Ball is to the east.")
else
doPlayerSendTextMessage(cid,22,"Dragon Ball is far to the east.")
end
end
else
doPlayerSendTextMessage(cid,22,"Dragon Ball is to the east.")
end
else
if player.y > kula1.y then
doPlayerSendTextMessage(cid,22,"Dragon Ball is to the north.")
else
doPlayerSendTextMessage(cid,22,"Dragon Ball is to the south.")
end
end
end
else
doPlayerSendCancel(cid,"Radar Cant find the Dragon Ball.")
end
return 1
end

#Edit
Pami?tajcie, ?e ja te kule chc? rozrzuca? po mapie, a nie respi? w konkretnych miejsach - my?l?, ?e trzeba b?dzie pisa? new skrypt i tylko elementy wzi?? z tego.
aaaaaa i autorem tego jest oczywi?cie WoDBO team, a nie ja