What's new

[8.10]Poszukuje !bless

Status
Not open for further replies.

jeanek

Advanced User
Joined
Sep 8, 2008
Messages
162
Reaction score
22
Witam, jak w temacie poszukuje skryptu na kupno wszystkich bless?w komend? !bless lub !buybless ,wiem ze google nie boli ,ale nie znalaz?em dzia?aj?cego .
Silnik : Aries 0.4.0
 

Ruby Shark

Advanced User
Joined
Feb 6, 2010
Messages
325
Reaction score
16
Odp: [8.10]Poszukuje !bless

Zaje?o mi znalezienie tego w jakies 5sec -.-
Data/Talkactions/Scritps
robisz bless.lua i wpisujesz tam:
local bless = {1, 2, 3, 4, 5}
local cost = 50000
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
doCreatureSay(cid, "You are now blessed!" ,19)
doSendMagicEffect(getPlayerPosition(cid), 49)
else
doPlayerSendCancel(cid, "You don\'t have enough money.")
end
return TRUE


Teraz Data/Talkactions/Talkactions.xml
dodajesz tam:
<talkaction words="!bless" scripts="bless.lua"/>

I wszystko jest git majonez :D
 

jeanek

Advanced User
Joined
Sep 8, 2008
Messages
162
Reaction score
22
Odp: [8.10]Poszukuje !bless

Nie dzia?a ;[
 
Status
Not open for further replies.
Top