pirl0
Scripter
- Joined
- Apr 16, 2009
- Messages
- 172
- Reaction score
- 0
Easy script to chest you can choose one of outfit.
Unique IDs:
DWARF - 7958
ELF - 7957
Actions.XML
Script:
outfits.xml
Thanks...
Unique IDs:
DWARF - 7958
ELF - 7957
Actions.XML
Code:
<action uniqueid="7957" event="script" value="new.lua"/>
<action uniqueid="7958" event="script" value="new.lua"/>
Script:
Code:
--- Scripts make by Pearl for kosmos.tibiahosting.pl
function onUse(cid, item, frompos, item2, topos)
local cipa = item.uid
local chuj = {
[7957] = {kurwa = 13371, gadu = "elf outfit"},
[7958] = {kurwa = 13381, gadu = "dwarf outfit"}
}
local jebany = chuj[cipa].kurwa
local cipenka = 13370
local dziwka = getPlayerStorageValue(cid, cipenka)
if dziwka == -1 or dziwka == 0 then
setPlayerStorageValue(cid, jebany, 1)
setPlayerStorageValue(cid, cipenka, 1)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have choose new addon [".. chuj[cipa].gadu .."].")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "This chest is empty.")
end
return TRUE
end
outfits.xml
Code:
<outfit id="23" premium="no" quest="13371">
<list gender="0-3" lookType="159" name="Elf"/>
</outfit>
<outfit id="24" premium="no" quest="13381">
<list gender="0-3" lookType="160" name="Dwarf"/>
</outfit>
Last edited: