- Dołączył
- Październik 25, 2011
- Posty
- 172
- Liczba reakcji
- 2
- Wiek
- 30
OTS/data/talkaction/scripts/bless.lua
Kolor kosztu blessow.
OTS/data/talkactions/talkactions.xml - doklejamy to:
Autor skryptu nieznany ale chyba jest to Roy ale nie jestem pewien bo wyciemnia?em ten skrypt z jakiego? silnika i nie pami?tam jakiego.
Kod:
local bless = {1, 2, 3, 4, 5}
local cost = [COLOR="YellowGreen"]80000[/COLOR] -- Cost in gp.
function onSay(cid, words, param)
for i = 1, table.maxn(bless) do
if(getPlayerBlessing(cid, bless[i])) then
doPlayerSendCancel(cid, "Kupile? ju? blessy!")
return TRUE
end
end
if(doPlayerRemoveMoney(cid, cost) == TRUE) then
for i = 1, table.maxn(bless) do
doPlayerAddBlessing(cid, bless[i])
end
doPlayerSendTextMessage(cid,24, "Gratuluje kupna blessow!")
doSendMagicEffect(getPlayerPosition(cid), 28)
else
doPlayerSendCancel(cid, "Nie masz na to pieniedzy , to kosztuje 8 cc.")
end
return TRUE
end
Kolor kosztu blessow.
OTS/data/talkactions/talkactions.xml - doklejamy to:
Kod:
<talkaction words="!bless" script="bless.lua"/>
