adix1310 - 2012-10-14 12:03:13

W talkactions:

Kod:

<talkaction words="!aol" event="script" value="aol.lua"/>

Skrypt:

Kod:

  function onSay(cid, words, param)
if getPlayerMoney(cid) >= 20000 then
    doPlayerRemoveMoney(cid,20000)
    doPlayerAddItem(cid,2173,1)
    doSendMagicEffect(getPlayerPosition(cid),12)
    doCreatureSay(cid, "Kupiles aol.", TALKTYPE_ORANGE_1)
else
doPlayerSendTextMessage(cid,MESSAGE_STATUS_CONSOLE_BLUE,"Nie masz kasy. Aol komenda: 2cc, u npc Eremo: 1cc.")
    doSendMagicEffect(getPlayerPosition(cid),2)
end
return TRUE
end
www.nl2-godmt2.pun.pl www.gimnazjum.pun.pl www.darkbiotech.pun.pl www.wolontariat.pun.pl www.robole.pun.pl