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.
next go back to talkactions.xml and open it with wordpad, go to where says " <!-- Players -->" and copy/paste that
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.
next go back to talkactions.xml and open it with wordpad, go to where says " <!-- Players -->" and copy/paste that
if u want change the experience which u give or the money u waste u must go here
for money (it's 150000gp = 1500p = 15cc)
here for the exp
Gl and hopie u like it!!!
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
Code:
doPlayerAddExp (cid, 1000000)
Gl and hopie u like it!!!