What's new

Runa Na Outfit < GM >

Status
Not open for further replies.

olborek

Active User
Joined
May 30, 2009
Messages
75
Reaction score
10
Siemka ..
Mam dla was Rune kt?ra b?dzie dawa?a Outfit GM'a.
Wchodzimy ots/data/spells/runes i robimy plik gmruna.lua
I wklejamy tam to .
--**By OlboReK**--
attackType = ATTACK_POISON
animationEffect = NM_ME_LOOSE_ENERGY
hitEffect = NM_ME_LOOSE_ENERGY
damageEffect = NM_ME_LOOSE_ENERGY
animationColor = RED
offensive = false
drawblood = false
UltimateHealingObject = MagicDamageObject(attackType, animationEffect, hitEffect, damageEffect, animationColor, offensive, drawblood, 0, 0)
function onCast(cid, creaturePos, level, maglv, var)
centerpos = {x=creaturePos.x, y=creaturePos.y, z=creaturePos.z}
timec = 3000
changeOutfit(cid, timec, 75)
end
timec = 3000 ?eby by? niesko?czony czas dajemy tam 0.
Wchodzimy do spells.xml wyszukujemy tam RUNES i doklejamy linijke.
<rune name="gmruna" id="2299" charges="8" maglv="5" mana="0" enabled="1"></rune>
id="2299" Tu mo?na zmieni? ID Runy :D
Pomog?em ? :D
 

olborek

Active User
Joined
May 30, 2009
Messages
75
Reaction score
10
Odp: Runa Na Outfit < GM >

@~~RefresH~~@
Dawajcie jakie? OCENKI :D
 

hektorx

Banned
Joined
Apr 27, 2009
Messages
77
Reaction score
5
Age
30
Odp: Runa Na Outfit < GM >

Hmm Przyda si?, Dzi?ki:D
 

gm loleq

User
Joined
Aug 14, 2010
Messages
15
Reaction score
0
Odp: Runa Na Outfit < GM >

Podoba mi. si? uzyje tego na swoim ots...
Dzieki wielkie.. dam edita jak bedzie dzialac.

Dziala ;d thx.
 

Vermin

Active User
Joined
Dec 8, 2010
Messages
51
Reaction score
1
Odp: Runa Na Outfit < GM >

Nice :)

Zaraz b?dzie spam, ?e komu? nie dzia?a na nowszych versjach to ma:

Code:
function onUse(cid, item, frompos, item2, topos)   -- By Seminari;

local c = {
item1 = 2271, -- twoj item jaki chcesz uzywac
efekt = 10, -- efekt jaki ma byc wygenerowany na postaci po uzyciu itemu
text = "O lol zostales zamieniony w gejm majstera!", -- twoj tekst gdy dostajemy outfita
GM_outfit = 75,  -- Tu wpisz outfit na jaki ma cie zmienic
czas = 30 * 1000  -- 1000 nie usuwaj  30 * 1000 = 30 sekund, ja chcesz na minuty to np. 5 * 60 * 1000 = 5 minut.
}
if item.itemid == c.item1 then
local playerpos = getCreaturePosition(cid)

doSetCreatureOutfit(cid, c.GM_outfit, c.czas)

doSendMagicEffect(playerpos, c.efekt)
doPlayerSendTextMessage(cid,22,c.text)
doRemoveItem(item.uid,1)
end
return true
end
 
Last edited:
Status
Not open for further replies.
Top