What's new

3 Talkactions(aol, mr, food)

Status
Not open for further replies.

garulec

Advanced User
Joined
Oct 8, 2008
Messages
164
Reaction score
7
Age
28
Potzrebuj? 3 skrypty do talkactions:

1. Jak si? wpisze "!mr" to daje nam rune o id "2270" za 1000gp.
2. Jak si? wpisze "!aol" to dostajemy Amulet of Loss za 1cc(10000gp).
3. Jak si? wpisze "!food" to otrzymujemy 100 Dragon Ham za 100gp.

Wszystko pod silnik Aries 0.4.5
Za to wszystko poleci reput!
 

Kruczeq

Senior User
Joined
May 31, 2009
Messages
637
Reaction score
135
Odp: 3 Talkactions(aol, mr, food)

data\talkactions\scripts\aol.lua:
Code:
-- !aol script by KoPeC --

function onSay(cid, words, param)



if doPlayerRemoveMoney(cid, 50000) == TRUE then

doPlayerAddItem(cid, 2173, 1)

doPlayerSendTextMessage(cid, 19,"Kupiles aol, kosztowalo cie to 5cc.")

doSendMagicEffect(getPlayerPosition(cid), 27)

else

doPlayerSendCancel(cid, "Sorry, Nie masz tyle kasy. Aol kosztuje 5cc.")

doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)

end



end
data\talkactions:
Code:
<talkaction words="!aol" script="aol.lua"/>


data\talkactions\scripts\buymanarune:
Code:
function onSay(cid, words, param)
    if doPlayerRemoveMoney(cid, 30000) == TRUE then
            doPlayerAddItem(cid, 2270, 100)
            doPlayerSendTextMessage(cid, 19,"Kupiles manarune.")
            doSendMagicEffect(getPlayerPosition(cid), 27)
        else
            doPlayerSendCancel(cid, "Sory ale nie masz kasy. manarune kosztuje 3cc.")
            doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
        end
    end
data\talkactions:
Code:
<talkaction words="!manarune" script="buymanarune.lua"/>

Mam tylko tyle.;d
Je?eli pomog?em ciesze si?.;D
Te komendy s? na moim OT i nie s? moje!.;D
:up:
 

garulec

Advanced User
Joined
Oct 8, 2008
Messages
164
Reaction score
7
Age
28
Odp: 3 Talkactions(aol, mr, food)

Nie dzia?aj? :/
Masz pewnie wersje 0.4.0 Areis'a :/
 

Ovner

Senior User
Joined
Jun 21, 2009
Messages
528
Reaction score
54
Age
31
Odp: 3 Talkactions(aol, mr, food)

Spr?buj tego na dragon ham by me ;p


Stworz skrypt w data\talkactions\scripts
o nazwie food.lua a w nim umiec to \/
Code:
-- !food skrypt by Ovner --
function onSay(cid, words, param)
if doPlayerRemoveMoney(cid, 100) == TRUE then
doPlayerAddItem(cid, 2672, 100)
doPlayerSendTextMessage(cid, 19,"You bought a dragon hams, it cost you 100 gp")
doSendMagicEffect(getPlayerPosition(cid), 27)
else
doPlayerSendCancel(cid, "You do not have enough money.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
end
end

Code:
<talkaction words="!food" script="food.lua"/>
 

garulec

Advanced User
Joined
Oct 8, 2008
Messages
164
Reaction score
7
Age
28
Odp: 3 Talkactions(aol, mr, food)

Kurde ten te? nie dzia?a :?
Mo?e to wina serwa...
@down
Nie
 
Last edited:

Ovner

Senior User
Joined
Jun 21, 2009
Messages
528
Reaction score
54
Age
31
Odp: 3 Talkactions(aol, mr, food)

Nie, jak ju? to wina skryptu jest za nowy/stary tzn. mo?e mie? inne funkcje to tyle.
Jakie? b??dy wyskakuj? ??
 
Status
Not open for further replies.
Top