Witam. Napisalem sam w 101% ten skrypt. Dziala on na zasadzie klikajac na przedmiot dostajemy addon. Ja bralem pod uwage DemonHunter mozna sobie wybrac inny addon. Przedmiot dziala tylko jeden 1 raz po kliknieciu znika. Teraz wytlumacze jak mozecie przerobic skrypt.
Robicie nowy plik addon.lua w data\actions\scripts i wklejacie to :
- Pozycja gdzie teleportuje po kliknieciu (Ja mam temple)
- ID Addonu
- Cyfry oznaczaja : 1-First Addon, 2- Second Addon, 3- Caly addon
- Tekst- Pokazuje po kliknieciu na item
____________________________________________________________
Moje Skrypty :
First DemonHunter Addon
Robicie nowy plik addon.lua w data\actions\scripts i wklejacie to :
Potem otwieracie w data\actions plik actions.xml i wklajacie tam :-------------------Ares-------------
local itemup = 8981
function onUse(cid, item, frompos, item2, topos)
if item.itemid == itemup then
tppos = {x=321, y=250, z=7, stackpos=1}
doTeleportThing(cid, tppos)
doPlayerAddOutfit(cid,288,2)
doPlayerAddOutfit(cid,289,2)
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid,8981)
doSendMagicEffect(playerpos, 12)
doCreatureSay(cid, "Gratulacie! Teraz jestes posiadaczem Second DemonHunter Addon !", TALKTYPE_ORANGE_1)
end
return 1
end
- ID Items do addonu<action itemid="8981" script="addon.lua" />
- Pozycja gdzie teleportuje po kliknieciu (Ja mam temple)
- ID Addonu
- Cyfry oznaczaja : 1-First Addon, 2- Second Addon, 3- Caly addon
- Tekst- Pokazuje po kliknieciu na item
____________________________________________________________
Moje Skrypty :
First DemonHunter Addon
Second DemonHunter Addon-------------------Ares-------------
local itemup = 9004
function onUse(cid, item, frompos, item2, topos)
if item.itemid == itemup then
tppos = {x=321, y=250, z=7, stackpos=1}
doTeleportThing(cid, tppos)
doPlayerAddOutfit(cid,288,1)
doPlayerAddOutfit(cid,289,1)
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid,9004)
doSendMagicEffect(playerpos, 12)
doCreatureSay(cid, "Gratulacie! Teraz jestes posiadaczem First DemonHunter Addon !", TALKTYPE_ORANGE_1)
end
return 1
end
-------------------Ares-------------
local itemup = 8981
function onUse(cid, item, frompos, item2, topos)
if item.itemid == itemup then
tppos = {x=321, y=250, z=7, stackpos=1}
doTeleportThing(cid, tppos)
doPlayerAddOutfit(cid,288,2)
doPlayerAddOutfit(cid,289,2)
local playerpos = getCreaturePosition(cid)
doRemoveItem(item.uid,8981)
doSendMagicEffect(playerpos, 12)
doCreatureSay(cid, "Gratulacie! Teraz jestes posiadaczem Second DemonHunter Addon !", TALKTYPE_ORANGE_1)
end
return 1
end