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

Cpu 105%

TriamerA

The Mystic One.
Joined
Nov 16, 2008
Messages
1,256
Reaction score
17
Location
Poland
Nie sms shop, nie talkactions, nie actions, nie npc, nie strona. Jakies pomysly? ;S
 
Wiem, ze war system zamula w jakis sposob ten Elfowski. Cos z savami tych warów jest nie tak i daltego zamula wszystko^
 
Spróbuj dać exhaust na sprzedawanie, napisałeś że gościu miał 2 bp wormów to mógł sprzedawać po jednym i laguje jakoś.
 
W libach NPC, skoro zrobiłeś exhaust na kupno to powinieneś wiedzieć :s.
 
No tylko właśnie nie widze tam funkcji w której npc kupuje item od nas.

function doPlayerTakeItem(cid, itemid, amount)
return getPlayerItemCount(cid, itemid) >= amount and doPlayerRemoveItem(cid, itemid, amount)
end

to funkcja w libach

może

function doPlayerTakeItem(cid, itemid, amount)
local exhaustionInSeconds = 3
local storage = 34231
if(exhaustion.check(cid, storage) == true) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You cant buy it so fast.")
return 0
end

return getPlayerItemCount(cid, itemid) >= amount and doPlayerRemoveItem(cid, itemid, amount)
exhaustion.set(cid, storage, exhaustionInSeconds)
end

Zrobilem ale i tak to chyba nie to.
 
Last edited by a moderator:
Back
Top