OTHispano
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.

Ir abajo
Dj Majestick
Dj Majestick
Miembro
Mensajes Mensajes : 131

script para cambiar 100cc a un gold ingot Empty script para cambiar 100cc a un gold ingot

Mar Sep 06, 2011 7:43 pm
Reputación del mensaje :100% (2 votos)
creo que este script estaba posteado pero nu sirve ....... xd

aqui lo tiene esta probado en mi ot y sirve sin ningun error

van a su ot/data/action/scrpt y buscan el que dia changegold y borran lo que esta adentro y le agregan esto

Código:
 local ITEM_GOLD_INGOT = 2157
local ITEM_GOLD_NUGGET = 9971
local coins = {
[ITEM_GOLD_COIN] = {
to = ITEM_PLATINUM_COIN, effect = TEXTCOLOR_YELLOW
},
[ITEM_PLATINUM_COIN] = {
from = ITEM_GOLD_COIN, to = ITEM_CRYSTAL_COIN, effect = TEXTCOLOR_LIGHTBLUE
},
[ITEM_CRYSTAL_COIN] = {
from = ITEM_PLATINUM_COIN, to = ITEM_GOLD_NUGGET, effect = TEXTCOLOR_TEAL
},
[ITEM_GOLD_NUGGET] = {
from = ITEM_CRYSTAL_COIN, to = ITEM_GOLD_INGOT, effect = TEXTCOLOR_PURPLE
},
[ITEM_GOLD_INGOT] = {
from = ITEM_GOLD_NUGGET, effect = TEXTCOLOR_RED
}
}
 
function onUse(cid, item, fromPosition, itemEx, toPosition)
if(getPlayerFlagValue(cid, PLAYERFLAG_CANNOTPICKUPITEM)) then
return false
end
 
local coin = coins[item.itemid]
if(not coin) then
return false
end
 
if(coin.to ~= nil and item.type == ITEMCOUNT_MAX) then
doChangeTypeItem(item.uid, item.type - item.type)
doPlayerAddItem(cid, coin.to, 1)
doSendAnimatedText(fromPosition, "shakin!", coins[coin.to].effect)
elseif(coin.from ~= nil) then
doChangeTypeItem(item.uid, item.type - 1)
doPlayerAddItem(cid, coin.from, ITEMCOUNT_MAX)
doSendAnimatedText(fromPosition, "$hakin!", coins[coin.from].effect)
end
return true
end


donde dice gold nugeet le cambie la id asi esque sus 100 cc se convertiran en 1 gold ingot y 100 gold ingot en 1 nugger

Si les gusto denme rep D:
ﻝhonLedit
ﻝhonLedit
Moderador
Mensajes Mensajes : 312
http://www.otsuporter.com/

script para cambiar 100cc a un gold ingot Empty Re: script para cambiar 100cc a un gold ingot

Mar Sep 06, 2011 7:50 pm
amm wuena pero no hahahha
avatar
♣✖►[MAP] Knox™◄✖♠
Mapper
Mensajes Mensajes : 13
http://collapser-mexico.mex.tl/

script para cambiar 100cc a un gold ingot Empty Re: script para cambiar 100cc a un gold ingot

Mar Sep 06, 2011 8:02 pm
Nice lo necesitaba xD
°ஃŠﺕρξŘθஃ°
°ஃŠﺕρξŘθஃ°
Aportador
Mensajes Mensajes : 213

script para cambiar 100cc a un gold ingot Empty Re: script para cambiar 100cc a un gold ingot

Miér Sep 07, 2011 5:57 am
Jeje gracias Muy bueno Very Happy
Contenido patrocinado

script para cambiar 100cc a un gold ingot Empty Re: script para cambiar 100cc a un gold ingot

Volver arriba
Permisos de este foro:
No puedes responder a temas en este foro.