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

Loss_items Problem, !bless

Donaj

Banned User
Joined
Jan 6, 2010
Messages
943
Reaction score
3
Witam, na poczatku mialem problem, gdy gracz padl spadalo mu cale eq czy mial aol czy nie. Naprawilem to Zmienilem w bazie loss_items na 100. Teraz, gdy gracz kupuje blessy spada mu cale eq. Wtf? Z gory dzieki za pomoc :)
 
Loss_items 100 jest dobrze ... a skrypt


-- !bless by Piotrek1447
-- edited by Kleksu
local bless = {1, 2, 3, 4, 5}
local cost = 500000 -- Cost in gp.
function onSay(cid, words, param)
for i = 1, table.maxn(bless) do
if(getPlayerBlessing(cid, bless)) then
doPlayerSendCancel(cid, "You have already all blessings.")
return TRUE
end
end
if(doPlayerRemoveMoney(cid, cost) == TRUE) then
for i = 1, table.maxn(bless) do
doPlayerAddBlessing(cid, bless)
end
doPlayerSendTextMessage(cid,24, "You bought all blessing.")
doSendMagicEffect(getPlayerPosition(cid), 28)
else
doPlayerSendCancel(cid, "You don't have enough money.")
end
return TRUE
end
 
hmm, na 2 otsie tak mam i jest sii.. Ots juz ma 3 miechy i nie widzialem skarg, a poza tym tylko z blessami spada eq, aol dziala nornalnie.:)
 
Back
Top