Darko0 Scripter
Premios :
Posts : 58 Points : 652 Reputation : 32 Join date : 17/07/2012
| Tema: [SCRIPT] Agarrar chest con 100 cc Mar Jul 17, 2012 4:32 pm | |
| Hola amigos les traigo este actionid que yo mismo cree jeje se trata de que cuando agarras un chest te da 100 cc no 1 si no 100 :P no se si ya este pero bueno se los paso Action/Scripts/Crystals.lua - Código:
-
--[[ Script by Darko0]]--
local STORAGE = 1000
function onUse(cid, item, frompos, item2, topos) local Items = {2160} local Count = {100} local ItemCount = 0 if (item.actionid == 1000) then if (getPlayerStorageValue(cid, STORAGE) < 1) then local i = 0 local Plural = "" local ItemName = "" for i in Items do if (type(Count[i]) == 'string') then ItemCount = 1 else ItemCount = Count[i] end local ItemName = getItemName(items[i]) if ((ItemCount > 1) and (string.sub(ItemName, string.len(ItemName)) ~= "s")) then Plural = "s" else Plural = "" end doPlayerAddItem(cid, Items[i], ItemCount) doPlayerSendTextMessage(cid,MessageClasses, "You have found "..Count.." "..ItemName..Plural..".") end else doPlayerSendTextMessage(cid, 22, "It's empty.") end end end Actions.XML - Código:
-
<action uniqueid="2160" event="script" value="Crystals.lua"/> | |
|