Belloz Moderators
Premios :
Posts : 70 Points : 159 Reputation : 1 Join date : 13/07/2012
| Tema: [TalkAction] Changename Vie Jul 13, 2012 10:38 pm | |
| Bueno Careguante estaba pidiendo este script asi que mejor se los traigo a todos server/data/talkactions/talkactions.xml y pegan esto abajo de y luego se van a server/data/talkactions/scripts y hacen un nuevo documento llamado changename, y pegan esto, - Código:
-
function onSay(cid, words, param, channel) local money = 10000 if(not(param)) then doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) doPlayerSendCancel(cid, "You did not specify a param.") return false end if(getPlayerMoney(cid) < money) then doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) doPlayerSendCancel(cid, "You don't have enought money.") return false end if(getCreatureCondition(cid, CONDITION_INFIGHT)) then doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF) doPlayerSendCancel(cid, "You can't do this while you're in combat.") return false end doPlayerRemoveMoney(cid, money) doRemoveCreature(cid) db.executeQuery("UPDATE `players` SET `name` = " .. param .. " WHERE `id` = " .. getPlayerGUID(cid) .. "") return true end El precio lo pueden cambiar aqui - Código:
-
local money = 10000 doPlayerRemoveItem(cid, item, 1) si no quieren que cobren nadamas lo ponen en 0 y ya, Y si quieren que quite un item borren, - Código:
-
local money = 10000 y pongan - Código:
-
doPlayerRemoveItem(cid, item, 1) en item va el id Creditos, 90% teckman 10% yo por traerlo y agregar lo de xml que varias personas no saben hacer y poner el remove item | |
|