Addon Runes - Prosba/Pomoc !

Veron

Active User
Zarejestrowany
Dołączył
Maj 4, 2009
Posty
68
Liczba reakcji
2
Witam !
Mam wielk? pro?b? czy by?by kto? w stanie zrobi? runy addonowe na poszczeg?lne outfity. Jak widzieli?cie mo?na znale?? na Yalaharian :

Kod:
local itemup = 2275 -- The ID of the item that will give you EXP
function onUse(cid, item, frompos, item2, topos)
if item.itemid == itemup then
doPlayerAddOutfit(cid,324,3)
doPlayerAddOutfit(cid,325,3)
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid,5785)
doSendMagicEffect(playerpos, 12)
doCreatureSay(cid, "Gratulacie! Teraz jestes posiadaczem Yalaharian outfit full!", TALKTYPE_ORANGE_1)
end
return 1
end
Kod:
   <action itemid="2275" script="nazwa.lua" />
Wi?c sk?d wzi?? pozosta?e numery addonow juz wiemy ze do yalaharian jest
324 i 325.
Reszt? kod?w nie mam poj?cia gdzie szuka? !
z g?ry dzi?ki

Ah oczywi?cie reput poleci
 
Odp: Addon Runes - Prosba/Pomoc !

*/data/xml/outfits.xml
Regards,
Kowol
@Down
Masz tam takie linijki:
<!-- Female Outfits -->
...
<outfit type="0" looktype="139" enabled="1" name="Knight" premium="0"/>
...
<!--Male Outfits -->
...
<outfit type="1" looktype="131" enabled="1" name="Knight" premium="0"/>
...
*** Numer outfitu

Wi?c b?dzie to tak wygl?da?:

doPlayerAddOutfit(cid,139,3)
doPlayerAddOutfit(cid,131,3)

@Down
Tak,
* 1- pierwszy addon
* 2- drugi addon
* 3- booth addon (oba addony)
 
Ostatnia edycja:
Odp: Addon Runes - Prosba/Pomoc !

niestety tam sa tylko typy outfitow a nie addonow

a jeszcze powiedz mi <Br>

doPlayerAddOutfit(cid,324,3)

te z oznacza ilosc addonow ?
 
Odp: Addon Runes - Prosba/Pomoc !

Tam 1 znaczy pierwszy addon, 2 drugi addon i 3 oba addony.
 
Odp: Addon Runes - Prosba/Pomoc !

A przy okazji popraw skrypt ;)
Kod:
local itemup = 2275 -- The ID of the item that will give you EXP
local playerpos = getCreaturePosition(cid)
function onUse(cid, item, frompos, item2, topos)
if item.itemid == itemup then
doPlayerAddOutfit(cid,324,3)
doPlayerAddOutfit(cid,325,3)
doRemoveItem(item.uid,1)
doSendMagicEffect(playerpos, 12)
doCreatureSay(cid, "Gratulacie! Teraz jestes posiadaczem Yalaharian outfit full!", TALKTYPE_ORANGE_1)
end
return true
end
__________________

Zapraszam na kleksoria.com!
Zajrzyj na nowe open tibia forum z w?asn? ot list? otservers.net!
 
Ostatnia edycja:
Back
Do góry