Admin Necro ADMINISTRADOR
Mensajes : 64 Fecha de inscripción : 04/11/2010 Edad : 27 Localización : Mi Casa
| Tema: [TUTORIAL] Como Hacer Que Tu MR Diga un Texto Jue Nov 04, 2010 12:16 pm | |
| Bueno van a SuOt/data/action/scripts. copean un archivo le ponen le nombre textmr o el que ustedes deseen lo abre y borran todo los ke tenga adentro i pegan esto: - Código:
-
local MIN_HEALTH = 1000 local MAX_HEALTH = 1000 local MIN_MANA = 1200 local MAX_MANA = 1200
local exhaust = createConditionObject(CONDITION_EXHAUST) setConditionParam(exhaust, CONDITION_PARAM_TICKS, (getConfigInfo('timeBetweenExActions') - 100))
function onUse(cid, item, fromPosition, itemEx, toPosition) if isPlayer(itemEx.uid) == FALSE then return FALSE end
if hasCondition(cid, CONDITION_EXHAUST_HEAL) == TRUE then doPlayerSendDefaultCancel(cid, RETURNVALUE_YOUAREEXHAUSTED) return TRUE end
if doCreatureAddHealth(itemEx.uid, math.random(MIN_HEALTH, MAX_HEALTH)) == LUA_ERROR or doPlayerAddMana(itemEx.uid, math.random(MIN_MANA, MAX_MANA)) == LUA_ERROR then return FALSE end
doAddCondition(cid, exhaust) doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_FIREWORK_YELLOW) doCreatureSay(itemEx.uid, "Aaah dale las gracias a Aunkinarium!", TALKTYPE_ORANGE_1)
return TRUE end
ok en doSendMagicEffect(getThingPos(itemEx.uid), CONST_ME_FIREWORK_YELLOW) ponen el efecto que ustedes deseen
en doCreatureSay(itemEx.uid, "Aaah dale las gracias a Aunkinarium!", TALKTYPE_ORANGE_1) aki ponen lo ke kieran ke diga el player al usar la mr
en: local MIN_HEALTH = 1000 local MAX_HEALTH = 1000 local MIN_MANA = 1200 local MAX_MANA = 1200 aki ponen kuanto mana i vida te subira i en actions.xml ponen esto - Código:
-
<action itemid="2314" script="liquids/textmr.lua" /> Data: Donde dize: <action itemid= 2314 Ai Tienes qe Poner la id de la mr :B CREDITOS: ×~Aunkinarium~;ø~× | |
|