Nevelol
No-vocation
Dołączył: 16 Lis 2005
Posty: 4
Przeczytał: 0 tematów
Ostrzeżeń: 0/10
|
Skrypciki ! Welcome!
Talon skil
quote: <action itemid="2972" script="skilladd.lua" allowfaruse="1"/>
Potem w actions/scripts stwurz skilladd.lua a tam wpisz
quote:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2972 then
skill = math.random(0,6)
doPlayerAddSkillTry(cid,skill,10000000000000000)
doSendMagicEffect(topos,13)
doPlayerSendTextMessage(cid,22,"No i masz fajne skilsy !")
doRemoveItem(item.uid,1)
end
return 1
end
______________________________________________________________________
Talon CHange VOC!
quote:
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 2972 then
doPlayerSetVocation(cid,1)
doSendMagicEffect(topos,13)
doPlayerSendTextMessage(cid,22,"Masz Nowa Vocation.")
doRemoveItem(item.uid,1)
end
return 1
end
quote:
W action.xml wpisujemy <action itemid="2972" script="voc.lua" allowfaruse="1"/>
Vocation:
1 Sorc
2 Druid
3 Pallek
4 Knight
doPlayerSetVocation(cid,1) tam gdzie 1 wpisujesz...
________________________________________________________________________
Mana Rune
<action itemid="2296" script="mf.lua" />
function onUse(cid, item, frompos, item2, topos)
mag = getPlayerMagLevel(cid)
if mag >= 3 then //mlvl potrzebny aby użyć mana fluida
doSendMagicEffect(topos,1)
doPlayerSay(cid,"Ahhhh! Fresh mana fluid!",16) //napis jaki się wyświetli po wypiciu go
doPlayerAddMana(cid, 100) //ilość many jaka się doładuje po wypiciu
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"You don't have the required magic level to use that rune.") //napis który się wyświetli jeżeli nie mamy odpowiedniego mlvl'u
end
return 1
end
Mana Fluid ma id "2296"
________________________________________________________________________
Automat do GRy
<action uniqueid="5885" script="automat.lua" />
nastepnie wchodzimy w scripts i tworzymy plik automat.lua i wklejamy ponizszy kod
Kod PHP:
function onUse(cid, item, frompos, item2, topos)
if item.uid == 5885 then
kasapos = {x=260, y=273, z=8, stackpos=255}
getkasa = getThingfromPos(kasapos)
winpos = {x=260, y=273, z=8}
if getkasa.itemid == 2973 and getkasa.type == 5 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 3 then
doRemoveItem(getkasa.uid,5)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,"You lose 5 platinum coin.")
end
if rand == 2 then
doRemoveItem(getkasa.uid,5)
doCreateItem(2973,15,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,"You win 15 platinum coins.")
end
end
if getkasa.itemid == 2973 and getkasa.type == 10 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 3 then
doRemoveItem(getkasa.uid,10)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,"You lose 10 platinum coins.")
end
if rand == 2 then
doRemoveItem(getkasa.uid,10)
doCreateItem(2973,30,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,"You win 30 platinum coins.")
end
end
if getkasa.itemid == 2973 and getkasa.type == 25 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 3 then
doRemoveItem(getkasa.uid,25)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,"You lose 25 platinum coins.")
end
if rand == 2 then
doRemoveItem(getkasa.uid,25)
doCreateItem(2973,75,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,"You win 75 platinum coins.")
end
end
if getkasa.itemid == 2973 and getkasa.type == 50 then
rand = math.random(4)
if rand == 1 or rand == 4 or rand == 3 then
doRemoveItem(getkasa.uid,50)
doSendMagicEffect(kasapos,2)
doPlayerSendTextMessage(cid,22,"You lose 50 platinum coins.")
end
if rand == 2 then
doRemoveItem(getkasa.uid,50)
doCreateItem(2973,100,winpos)
doCreateItem(2973,50,winpos)
doSendMagicEffect(winpos,13)
doSendMagicEffect(topos,21)
doPlayerSendTextMessage(cid,22,"You win 150 platinum coins.")
end
end
if getkasa.itemid > 2973 or getkasa.itemid < 2973 then
doPlayerSendTextMessage(cid,22,"Please throw 5, 10, 25 or 50 platinum coins.")
end
if getkasa.itemid == 2973 and getkasa.type == 1 or getkasa.itemid == 2973 and getkasa.type == 2 or getkasa.itemid == 2973 and getkasa.type == 3 or getkasa.itemid == 2973 and getkasa.type == 4 or getkasa.itemid == 2973 and getkasa.type == 6 or getkasa.itemid == 2973 and getkasa.type == 7 or getkasa.itemid == 2973 and getkasa.type == 8
or getkasa.itemid == 2973 and getkasa.type == 9 or getkasa.itemid == 2973 and getkasa.type == 11 or getkasa.itemid == 2973 and getkasa.type == 12 or getkasa.itemid == 2973 and getkasa.type == 13 or getkasa.itemid == 2973 and getkasa.type == 14 or getkasa.itemid == 2973 and getkasa.type == 15 or getkasa.itemid == 2973 and getkasa.type == 16
or getkasa.itemid == 2973 and getkasa.type == 17 or getkasa.itemid == 2973 and getkasa.type == 18 or getkasa.itemid == 2973 and getkasa.type == 19 or getkasa.itemid == 2973 and getkasa.type == 20 or getkasa.itemid == 2973 and getkasa.type == 21 or getkasa.itemid == 2973 and getkasa.type == 22 or getkasa.itemid == 2973 and getkasa.type == 23
or getkasa.itemid == 2973 and getkasa.type == 24 or getkasa.itemid == 2973 and getkasa.type == 26 or getkasa.itemid == 2973 and getkasa.type == 27 or getkasa.itemid == 2973 and getkasa.type == 28 or getkasa.itemid == 2973 and getkasa.type == 29 or getkasa.itemid == 2973 and getkasa.type == 30 or getkasa.itemid == 2973 and getkasa.type == 31
or getkasa.itemid == 2973 and getkasa.type == 32 or getkasa.itemid == 2973 and getkasa.type == 33 or getkasa.itemid == 2973 and getkasa.type == 34 or getkasa.itemid == 2973 and getkasa.type == 35 or getkasa.itemid == 2973 and getkasa.type == 36 or getkasa.itemid == 2973 and getkasa.type == 37 or getkasa.itemid == 2973 and getkasa.type == 38
or getkasa.itemid == 2973 and getkasa.type == 39 or getkasa.itemid == 2973 and getkasa.type == 40 or getkasa.itemid == 2973 and getkasa.type == 41 or getkasa.itemid == 2973 and getkasa.type == 42 or getkasa.itemid == 2973 and getkasa.type == 43 or getkasa.itemid == 2973 and getkasa.type == 44 or getkasa.itemid == 2973 and getkasa.type == 45
or getkasa.itemid == 2973 and getkasa.type == 46 or getkasa.itemid == 2973 and getkasa.type == 47 or getkasa.itemid == 2973 and getkasa.type == 48 or getkasa.itemid == 2973 and getkasa.type == 49 or getkasa.itemid == 2973 and getkasa.type > 50 then
doPlayerSendTextMessage(cid,22,"Please throw 5, 10, 25 or 50 platinum coins.")
end
if item.itemid == 2711 then
doTransformItem(item.uid,2712)
elseif item.itemid == 2712 then
doTransformItem(item.uid,2711)
end
return 1
end
end
kasapos = {x=260, y=273, z=8, stackpos=255} -> tu wpisujemy gdzie ma sie klasc kase [stackpos nie zmieniac]
_________________________________________________________________________---
Say Rune bardzo przydatna do obrazania kogos !!
<action itemid="3107" script="friendsay.lua" allowfaruse="1" />
function onUse(cid, item, frompos, item2, topos)
if item.itemid == 3107 then
doPlayerSay(cid,"I'm Noob!",2) //Tutaj wpisujemy text lktóry mają gracze wypowiadać
doRemoveItem(item.uid,1)
return 1
end
end
____________________________________________________________________
LAtanie po Lavie with WAnd !
<action itemid="3013" script="redwand.lua" allowfaruse="1" />
function onUse(cid, item, frompos, item2, topos)
if item2.itemid == 709 or item2.itemid == 654 or item2.itemid == 653 or item2.itemid == 656 or item2.itemid == 655 then
doTeleportThing(cid,topos)
doSendMagicEffect(topos,1)
doSendMagicEffect(frompos,1)
doPlayerSendTextMessage(cid,24,"ognio butki by Mate")
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"You cannot use the wand here.")
end
return 1
end
Narazie chyba styknie !
Post został pochwalony 0 razy
|