ManaRuna by Gregor

Status
Zamknięty.

Pomocnik 2009 roku

Banned
Zbanowany
Dołączył
Maj 9, 2009
Posty
38
Liczba reakcji
6
Witam.
Przedstawiam wam skrypt na manarune pod tibia 7.6 w 100% b?dzie dzia?a? !

Otwierany notatnik i wpisujemy :​
PHP:
-- Mana rune by GM Gregor -- 

function onUse(cid, item, frompos, item2, topos) 
addmanapos = topos 
addmanapos.stackpos = 253 
playeraddmana = getThingfromPos(addmanapos) 


if getPlayerMagLevel(cid) >= 4 then 
if playeraddmana.itemid > 0 then 
random_number = math.random(100000) 
doSendMagicEffect(topos,12) 
doPlayerAddMana(playeraddmana.uid,random_number) 
doPlayerSay(cid,"Nowa porcja many!",16)
if item.type > 1 then 
doChangeTypeItem(item.uid,item.type-1) 
else 
doRemoveItem(item.uid,1) 
end 
else 
doSendMagicEffect(frompos,2) 
return 0 
end 
else 
doSendMagicEffect(frompos,2) 
doPlayerSendCancel(cid,"Masz za maly mlvl... ") 
end 
return 1 
end

Zapisujemy to w folderze : data-->actions-->scripts o nazwie manaruna.lua

Nastepni? wchodzimy do data-->actions i otwieramy za pomoc? notatnika actions.xml i wpisujemy :

PHP:
<action itemid="2270" script="manarune.lua" />

Nast?pnie zapisujemy i mamy gotow? manarun? ;-)

Mam nadziej?, ?e pomog?em.

Pozdrawiam,
Pomocnik.
 
Odp: ManaRuna by Gregor

Witam.

Czy istnieje mo?liwo?? ograniczenia dodawania many, ?eby manarunka dawa?a np. od 4k do 8k many?

Pozdrawiam
Kowal
 
Odp: ManaRuna by Gregor

@UP
PHP:
-- Mana rune by GM Gregor --  
 -- Edited by Magic Hereos --
function onUse(cid, item, frompos, item2, topos)  
addmanapos = topos  
addmanapos.stackpos = 253  
playeraddmana = getThingfromPos(addmanapos)  
 
 
if getPlayerMagLevel(cid) >= 4 then  
if playeraddmana.itemid > 0 then  
random_number = math.random(4000, 8000)  
doSendMagicEffect(topos,12)  
doPlayerAddMana(playeraddmana.uid,random_number)  
doPlayerSay(cid,"Nowa porcja many!",16) 
if item.type > 1 then  
doChangeTypeItem(item.uid,item.type-1)  
else  
doRemoveItem(item.uid,1)  
end  
else  
doSendMagicEffect(frompos,2)  
return 0  
end  
else  
doSendMagicEffect(frompos,2)  
doPlayerSendCancel(cid,"Masz za maly mlvl... ")  
end  
return 1  
end
 
Odp: ManaRuna by Gregor

Dzi?ki wielkie Magic Hereos
Tego potrzebowa?em.

Ps. A da?oby rad? zrobi? co? takiego, ?e zamiast "Nowa porcja many"
, pokazywa?oby si? na niebiesko ile dok?adnie many doda?o?

Pozdrawiam
Kowal:)
 
Ostatnio edytowane przez moderatora:
Odp: ManaRuna by Gregor

Kod:
-- Mana rune by GM Gregor --  
 -- Little edited by Miziak --
function onUse(cid, item, frompos, item2, topos)  
addmanapos = topos  
addmanapos.stackpos = 253  
playeraddmana = getThingfromPos(addmanapos)  
 
 
if getPlayerMagLevel(cid) >= 4 then  
if playeraddmana.itemid > 0 then  
random_number = math.random(4000, 8000)  
doSendMagicEffect(topos,12)  
doPlayerAddMana(playeraddmana.uid,random_number)  
doSendAnimatedText(addmanapos, "..random_number..", TEXTCOLOR_LIGHTBLUE)
if item.type > 1 then  
doChangeTypeItem(item.uid,item.type-1)  
else  
doRemoveItem(item.uid,1)  
end  
else  
doSendMagicEffect(frompos,2)  
return 0  
end  
else  
doSendMagicEffect(frompos,2)  
doPlayerSendCancel(cid,"Masz za maly mlvl... ")  
end  
return 1  
end

Powinno dzia?a? pozdro

Miziak
 
Odp: ManaRuna by Gregor

Moglby ktos napisac skrypt manaruny ktora daje mane ale zalezy od lvl ?

Pilnie potrzebuje : )
 
Odp: ManaRuna by Gregor

Hmm to nie powinno by? w runach?

#up
Obczaj mo?e b?dzie dzia?a?
-- Mana rune by GM Gregor --

function onUse(cid, item, frompos, item2, topos)
addmanapos = topos
addmanapos.stackpos = 253
playeraddmana = getThingfromPos(addmanapos)


if getPlayerLevel(cid) >= 4 then
if playeraddmana.itemid > 0 then
random_number = math.random(100000)
doSendMagicEffect(topos,12)
doPlayerAddMana(playeraddmana.uid,random_number)
doPlayerSay(cid,"Nowa porcja many!",16)
if item.type > 1 then
doChangeTypeItem(item.uid,item.type-1)
else
doRemoveItem(item.uid,1)
end
else
doSendMagicEffect(frompos,2)
return 0
end
else
doSendMagicEffect(frompos,2)
doPlayerSendCancel(cid,"Masz za maly mlvl... ")
end
return 1
end
 
Odp: ManaRuna by Gregor

Ehh skopiowales skrypt na manarune z pierwszego posta..

Niech ktos napisze ten skrpyt pilne : >
 
Odp: ManaRuna by Gregor

Prosz?...

Kod:
-- Mana rune by GM Gregor --  
 -- Little edited by Miziak --
function onUse(cid, item, frompos, item2, topos)  
local addmanapos = topos  
local addmanapos.stackpos = 253  
local playeraddmana = getThingfromPos(addmanapos)  
local lvl = getPlayerLevel(cid)
local addmana = math.random(8, lvl) * 30 + 185 - 8*30

if getPlayerMagLevel(cid) >= 4 then  
if playeraddmana.itemid > 0 then 
doSendMagicEffect(topos,12)  
doPlayerAddMana(playeraddmana.uid,addmana)  
doSendAnimatedText(addmanapos, "..addmana..", 35)
if item.type > 1 then  
doChangeTypeItem(item.uid,item.type-1)  
else  
doRemoveItem(item.uid,1)  
end  
else  
doSendMagicEffect(frompos,2)  
return 0  
end  
else  
doSendMagicEffect(frompos,2)  
doPlayerSendCancel(cid,"Masz za maly mlvl... ")  
end  
return 1  
end
 
Odp: ManaRuna by Gregor

Kod:
-- Mana rune by GM Gregor --  
 -- Little edited by Miziak --
function onUse(cid, item, frompos, item2, topos)  
addmanapos = topos  
addmanapos.stackpos = 253  
playeraddmana = getThingfromPos(addmanapos)  
if getPlayerMagLevel(cid) >= 4 then  
if playeraddmana.itemid > 0 then  
random_number = math.random(4000, 8000)  
doSendMagicEffect(topos,12)  
doPlayerAddMana(playeraddmana.uid,random_number)  
doSendAnimatedText(addmanapos, "..random_number..", TEXTCOLOR_LIGHTBLUE)
if item.type > 1 then  
doChangeTypeItem(item.uid,item.type-1)  
else  
doRemoveItem(item.uid,1)  
end  
else  
doSendMagicEffect(frompos,2)  
return 0  
end  
else  
doSendMagicEffect(frompos,2)  
doPlayerSendCancel(cid,"Masz za maly mlvl... ")  
end  
return 1  
end
Powinno dzia?a? pozdro
Miziak

Thx sprzyda si? :up:
 
Odp: ManaRuna by Gregor

Spoko m rune wielki dzienki... Szkoda tylko ze nie zalezy od m lvl i od zwyklego lvl ile daje ;) A to mi starczy...
 
Odp: ManaRuna by Gregor

Spoko m rune wielki dzienki... Szkoda tylko ze nie zalezy od m lvl i od zwyklego lvl ile daje ;) A to mi starczy...
Takie cos mozna zrobic aby np n 10lvl dawalo x na 30 y a na 50 y i dalej
To nie jest wcale trudne jesli chcesz abym ci pomogl napisz albo tu albo na gg 12323852
JAK ZA TO DOSTANE OSTRZEZENIE TO ZARAZ WALNE NA ZAWA?!
 
Odp: ManaRuna by Gregor

A da sie zrobic zeby byla nieskonczona?
 
Odp: ManaRuna by Gregor

Super 10/10 Bardzo mi sie przyda manarunka od levela :)) Gratulacje solidnie zrobiona no i perfekcyjnie :)
 
Odp: ManaRuna by Gregor

a jak zrobic zeby sie niekoczy?a ?? xD
 
Odp: ManaRuna by Gregor

Magic Heroes mam pytanie gdzie to wkleic by to dzialalo ...
wklejam na actions.xml i mi nie dziala ;/
Chodzi mi o to...
 
Status
Zamknięty.
Back
Do góry