bialas
Taki se gostek
Dołączył: 27 Sie 2006
Posty: 1
Przeczytał: 0 tematów
Ostrzeżeń: 0/5
|
Wysłany: Nie 22:54, 27 Sie 2006 Temat postu: pomoc w skryptach |
|
|
1. skrypt
temprune
actions/scrypt/robimy plik temprune.lua
--Town Scroll by Bialas--
--Fixed By GM Bialas--
function onUse(cid, item, frompos, item2, topos)
player1pos = getPlayerPosition(cid)
player1 = getThingfromPos(player1pos)
if player1.itemid > 0 then
temple = {x=160, y=54, z=7} -- TP x y z
doSendMagicEffect(topos,23)
doTeleportThing(player1.uid,temple)
doSendMagicEffect(temple,23)
doPlayerSendTextMessage(player1.uid,22,"Zostales Teleportowany Do Temple Moca Tej Księgi.")
doPlayerSay(cid,"Ziuuuuuu!!! Ja Chce Jeszce Raz",16)
doRemoveItem(item.uid,1949)
end
end
w actions/scrypt dopisujemy
<action itemid="4855" script="temprune.lua" allowfaruse="1"/>
scrypt sprawdzony na yurots jezeli masz inny ots to zmien ip runki
2.scrypt halloween rune
spells/runes robimy plik halloween rune.lua
attackType = ATTACK_NONE
animationEffect = NM_ANI_NONE
hitEffect = NM_ME_NONE
damageEffect = NM_ME_MAGIC_ENERGIE
animationColor = GREEN
offensive = false
drawblood = false
LightMagicMissileObject = 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}
LightMagicMissileObject.minDmg = 0
LightMagicMissileObject.maxDmg = 0
outfit = math.random(6)
if outfit == 1 then
monsterlook = 33
end
if outfit == 2 then
monsterlook = 54
end
if outfit == 3 then
monsterlook = 68
end
if outfit == 4 then
monsterlook = 48
end
if outfit == 5 then
monsterlook = 18
end
if outfit == 6 then
monsterlook = 65
end
time = 3600
ret = doTargetMagic(cid, centerpos, LightMagicMissileObject:ordered())
if(ret) then
changeOutfit(cid, time, monsterlook)
end
return ret
end
w spells/spells.xml wpisz w pod <rune name=
<rune name="halloween rune" id="2290" charges="1" maglv="1" mana="0" enabled="1"></rune>
wiecej skryptow bedzie pod warunkiem dobrych komentarzy
Post został pochwalony 0 razy
|
|