• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

TalkAction Experience talkactions!

Sir who

New Member
Joined
Jul 10, 2011
Messages
17
Reaction score
1
Location
Spain
Hello Sir who here! its my first post talkaction! hope u like it and if i helped u put like and rep ++ me!

Well the first will be give to yourself experience.

go to your server folder, go to data,talkactions and scripts.

copy a lua and rename it calling experience, and copy/paste this script.

Code:
function onSay (cid, words, param)
doPlayerAddExp (cid, 1000000)
doSendMagicEffect(getPlayerPosition(cid),12)
end
return true


next go back to talkactions.xml and open it with wordpad, go to where says " <!-- Players -->" and copy/paste that
Code:
	<talkaction words="/!experience10k!\" event="script" value="experience.lua"/>



Now we'll do a talkcation for the players can buy exp with money!.

go to your server folder, go to data,talkactions and scripts.
copy a lua and rename it calling experiencebuy, and copy/paste this script.
Code:
function onSay (cid, words, param)
if doPlayerRemoveMoney(cid,150000) == TRUE then
doPlayerAddExp (cid, 1000000)
doSendMagicEffect(getPlayerPosition(cid),12)
doPlayerSendTextMessage(cid,22,"u have bought exp!")
else -- if the player doesn't have enough money...
doPlayerSendCancel(cid,"u dont have enugh money.")
doSendMagicEffect(getPlayerPosition(cid),2)
end
return true
end

next go back to talkactions.xml and open it with wordpad, go to where says " <!-- Players -->" and copy/paste that

Code:
	<talkaction words="!buyexp" event="script" value="experiencebuy.lua"/>

if u want change the experience which u give or the money u waste u must go here
Code:
if doPlayerRemoveMoney(cid,150000) == TRUE then
for money (it's 150000gp = 1500p = 15cc)
Code:
doPlayerAddExp (cid, 1000000)
here for the exp


Gl and hopie u like it!!!
 
LUA:
function onSay (cid, words, param)
doPlayerAddExp (cid, 1000000)
doSendMagicEffect(getPlayerPosition(cid),12)
return true
end
??

Good work :)
 
LUA:
function onSay (cid, words, param)
doPlayerAddExp (cid, 1000000)
doSendMagicEffect(getPlayerPosition(cid),12)
return true
end
??
Good work :)

Noticed that too.
However the script should be made so that you can add the amount of exp you write like
!addexp 1000
and it will add 1000 xp.
 
Noticed that too.
However the script should be made so that you can add the amount of exp you write like
!addexp 1000
and it will add 1000 xp.

And how can i do it korrex?
 
LUA:
function onSay (cid, words, param, channel)
    if not tonumber(param) then
        return doPlayerSendCancel(cid,'Invalid experience amount.')
    end
    return doPlayerAddExp (cid, param), doSendMagicEffect(getThingPos(cid),12)
end
 
LUA:
function onSay (cid, words, param, channel)
    if not tonumber(param) then
        return doPlayerSendCancel(cid,'Invalid experience amount.')
    end
    return doPlayerAddExp (cid, param), doSendMagicEffect(getThingPos(cid),12)
end

And what i need to say in the ot?
 
i cud make it so it sets ur experience rate to 50% more but i dont know how to make it last in 1 hour.
 
Back
Top