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

TalkAction Kick-Ass Script!

Jesper_Kladden

Donator
Joined
May 16, 2008
Messages
458
Reaction score
1
Location
Sweden
This is my first script ever that I've done in LUA so I guess I'm 1337 now!!

J/K. I know it suxx, but anyways..

when the player says "!gold" - he will recieve 100 gold (1 platinum). !!!


Call this file "getgold.lua"
Code:
function onSay(cid, word, param)
doPlayerAddMoney(cid, 100)
doPlayerSendTextMessage(cid, 21, "You've just got 100 gold pieces!")
end

and this should be in the "Talkactions.xml"
Code:
<talkaction words="!gold" script="getgold.lua"/>


Rate it from 1~10 !! This is my first script ever :D

ps. - TFS 0.2
 
Awesome !!
Too bad I wont use it.
Players will get rich very fast >.>

try add an Access. Like only for tutors,GMs,GODs

Edit: forgot to say, Good 1st script.
 
Works for TFS 0.3 too. ;)

VERY basic script, but I guess it's a start. Good work!
 
Hehe. Yes, it's very basic!

I'm doing a script that if you say "!buyblessing1" you will buy it for 5000 gold. But can't do it ATM because of lack of access to a computer.

Bb :*
 
Why not making with storage value.. like


PHP:
function onSay(cid, word, param)
if getPlayerStorageValue(cid, 1000) == -1 then
doPlayerAddMoney(cid, 100)
setPlayerStorageValue(cid, 1000, 1)
doPlayerSendTextMessage(cid, 21, "You've just got 100 gold pieces!")
else
doPlayerSendTextMessage(cid, 22, "You already received your money")
end
return TRUE
end

Anyway, simple and great first script:)
 
Last edited:
Why not making with storage value.. like


PHP:
function onSay(cid, word, param)
if getPlayerStorageValue(cid, 1000) -1 then
doPlayerAddMoney(cid, 100)
setPlayerStorageValue(cid, 1000, 1)
doPlayerSendTextMessage(cid, 21, "You've just got 100 gold pieces!")
else
doPlayerSendTextMessage(cid, 22, "You already received your money")
end
return TRUE
end

Anyway, simple and great first script:)

If you want people to learn from it you should teach them right. Like adding comments on every line to explain what it does and tabbing correct lol.
 
Why not making with storage value.. like


PHP:
function onSay(cid, word, param)
if getPlayerStorageValue(cid, 1000) -1 then
doPlayerAddMoney(cid, 100)
setPlayerStorageValue(cid, 1000, 1)
doPlayerSendTextMessage(cid, 21, "You've just got 100 gold pieces!")
else
doPlayerSendTextMessage(cid, 22, "You already received your money")
end
return TRUE
end

Anyway, simple and great first script:)

if getPlayerStorageValue(cid, 1000) == -1 then
 
Nice, i started like you now im a little more advanced! not as Colandus or Nahruto xD keep it like that. I can help you if you whant(PM) :D
 
Code:
<talkaction words="!gold" value="if(getPlayerLevel(cid) > 8) then (doPlayerAddItem(cid, 2148, 100) end"/>

Isn't this how Elf showed us?
Can't remember :p
 
Last edited:
@below up
lol why the old damn useless script thread revival?

@jdb
:) elf's student
 
Code:
<talkaction words="!gold" value="if(getPlayerLevel(cid) > 8) then (doPlayerAddItem(cid, 2148, 100) end"/>

Isn't this how Elf showed us?
Can't remember :p
Code:
<talkaction words="!gold" event="buffer" value="if(getPlayerLevel(cid) > 8) then doPlayerAddItem(cid, 2148, 100) end"/>
does it require cdata here?
 
lol why for? buffer shortens that
 
make it easier ^^

!gold "9475

AddPlayerMoney, (Cid, '.. replie ..')

Something like that xD

very bad example, but you get my point.... I hope. ^^

Anyhow, would never use such script! :p
 
meh never-er, it is too simple/easy
 
@Jesper_Kladden
u gaylord chupapitos i go spam insult u in msn thx bye, why u post this nubak stuff go post source of spam bot ty
 
Back
Top