Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[8.1][Szukam]5 skryptow


MasterofFps

Rekomendowane odpowiedzi

Opublikowano

1 Skrypt (na 2 wandy w 1 :D SD/Energy ) : - juz dostalem skrypty na wanda od rafaeru

a oto one :

on :





local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -40, 0, -60)

function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end

 

off :





local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -30, 0, -50)

function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end

 

weapon.xml :





<wand id="2162" range="3" lvl="1" mana="1" enabled="1" exhaustion="0" script="off.lua"><vocation id="2"/><vocation id="6"/></wand>
<wand id="2163" range="3" lvl="1" mana="1" enabled="1" exhaustion="0" script="on.lua"><vocation id="2"/><vocation id="6"/></wand>

 

item.xml :





	<attribute key="weaponType" value="wand"/>

trzeba dodac to do itemu 2162 i 2163 zeby wand zadzialal :D

 

 

1 Skrypt:

Szukam skryptu dzieki ktoremu zmienie ten item na wanda

screen :

1372285678-U374573.png

nie swiecacy = 2162

swiecacy = 2163

Chce zeby :

na poczatku ta nieswiecaca bila z mortu tak jak sd

a ta swiecaca z energi

oczywiscie po kliknieciu na wanda wand sie zmienia w swiecacego i na odwrot :D

i ten kto ja nosi i kliknie zeby sie zmienila na swiecaca - daje 100% utevo lux tz. oswieca cala plansze :D

 

2 Skrypt :

na frozenstarlight

screen :

1372285919-U374573.png

Chce zeby :

Gdy klikne na to i na ziemie wlaczal sie utevo lux ktory oswietla cala plansze na 10 min :D

 

3 Skrypt (na proce): - juz dostalem dzialajacy skrypt od rafaeru ^^ a oto on :









  <item id="5907" article="a" name="slingshot">
        <attribute key="weight" value="4000" />
        <attribute key="weaponType" value="distance" />
        <attribute key="slotType" value="two-handed" />
        <attribute key="ammoType" value="bolt" />
        <attribute key="range" value="5" />
    </item>

1372286539-U374573.png

Chce zeby ten item dzialal jak kusza :D

4 Skrypt (na item ktory zmienia wyglad) :

dzialajacy skrypt :

---By Miziak----
 function onUse(cid, item, frompos, item2, topos)
 local storage = 1800
 setPlayerStorageValue(cid, storage+1, getCreatureOutfit(cid).lookHead)
 setPlayerStorageValue(cid, storage+2, getCreatureOutfit(cid).lookBody)
 setPlayerStorageValue(cid, storage+3, getCreatureOutfit(cid).lookLegs)
 setPlayerStorageValue(cid, storage+4, getCreatureOutfit(cid).lookFeet)
 standardoutfit = { lookType = 266, lookHead = getPlayerStorageValue(cid, storage+1), lookBody = getPlayerStorageValue(cid, storage+2), lookLegs = getPlayerStorageValue(cid, storage+3), lookFeet = getPlayerStorageValue(cid, storage+4), lookAddons = getPlayerStorageValue(cid, storage+5) }
 doSetCreatureOutfit(cid, standardoutfit, 10*60*1000)
 local pos = getPlayerPosition(cid)
doSendMagicEffect(pos, 14)
 end

266 to wyglad

10*60*1000 to czas

14 to effekt

 

4 Skrypt :

1372286563-U374573.png

Chce zeby :

5808 - zmienial w orshabaala

5943 - zmienial w morgarotha

5799 - zmienial w look goda taki jak moj na screenie :D

2353 - zmienial w devila

 

5 Skrypt :

 

1372286903-U374573.png

 

Chce zeby :

-mozna bylo z tego zapalic :D (effekt dymku)

 

-zabieralo 1000000many przy 1 uzyciu(buchu)

-zeby dawalo effekt upicia

-jesli sie da to zeby niepisalo hisk tylko cos innego ;D

za kazdy 1 skrypt dam 3x5 w profilu (codziennie 1x5 :D) + like it x3 :D

za wszystkie skrypty mozna dostac odemnie 15x5 w profilu i 15 like itow :D

Opublikowano

1 Skrypt :

wstaw plik z data/weapons/weapons.xml

2 Skrypt :

wstaw to w data/spells/spells.xml

    <rune name="Frozenstarlight" id="2361" allowfaruse="1" charges="10000000000000000000" lvl="1" maglv="1" exhaustion="2000" needtarget="0" event="script" value="swiatlo.lua"/>

a w data/spells/scripts utwórz plik swiatlo.lua i wklej to:

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

local condition = createConditionObject(CONDITION_LIGHT)
setConditionParam(condition, CONDITION_PARAM_LIGHT_LEVEL, 8)
setConditionParam(condition, CONDITION_PARAM_LIGHT_COLOR, 215)
setConditionParam(condition, CONDITION_PARAM_TICKS, (11 * 60 + 35) * 1000)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

 

3 Skrypt :

data/weapons/weapons,xml dodaj

	<distance id="5907" level="1" unproperly="1" event="function" value="default"> <!-- Proca -->
		<vocation id="3"/>
		<vocation id="7" showInDescription="0"/>
	</distance>

w level="1" ustaw lvl od jakiego można używać, a w vocations id jakie profesje, jeżeli masz np. epic royal paladin itp musisz dodać nowa linijkę.

 

4 Skrypt :

nie chce mi się tego robić ;d

5 Skrypt :

znalazlem taki, bo nie chce mi się już myśleć

data/actions/scripts utwórz plik szisza.lua

	function onUse(cid, item, frompos, item2, topos)
 	doSendMagicEffect(topos,2)
	doPlayerSay(cid, "chrzan koks" ,16)  -- dowolny tekst na miejsce "chrzan koks"
	doRemoveItem(item.uid, 1)
   	return 1
 
   end

w data/actions/actions.xml dodaj

<action itemid="7499" script="cygaro.lua" />

----------------------------------------------------------

Co do tych skryptów nie jestem pewien bo nie sprawdzałem ale myślę ze powinny być dobre w razie czego postaram się poprawić

Opublikowano

1 Skrypt :

wstaw plik z data/weapons/weapons.xml

2 Skrypt :

wstaw to w data/spells/spells.xml











    <rune name="Frozenstarlight" id="2361" allowfaruse="1" charges="10000000000000000000" lvl="1" maglv="1" exhaustion="2000" needtarget="0" event="script" value="swiatlo.lua"/>

a w data/spells/scripts utwórz plik swiatlo.lua i wklej to:











local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)

local condition = createConditionObject(CONDITION_LIGHT)
setConditionParam(condition, CONDITION_PARAM_LIGHT_LEVEL, 8)
setConditionParam(condition, CONDITION_PARAM_LIGHT_COLOR, 215)
setConditionParam(condition, CONDITION_PARAM_TICKS, (11 * 60 + 35) * 1000)
setCombatCondition(combat, condition)

function onCastSpell(cid, var)
	return doCombat(cid, combat, var)
end

 

3 Skrypt :

data/weapons/weapons,xml dodaj











	<distance id="5907" level="1" unproperly="1" event="function" value="default"> <!-- Proca -->
		<vocation id="3"/>
		<vocation id="7" showInDescription="0"/>
	</distance>

w level="1" ustaw lvl od jakiego można używać, a w vocations id jakie profesje, jeżeli masz np. epic royal paladin itp musisz dodać nowa linijkę.

 

4 Skrypt :

nie chce mi się tego robić ;d

5 Skrypt :

znalazlem taki, bo nie chce mi się już myśleć

data/actions/scripts utwórz plik szisza.lua











	function onUse(cid, item, frompos, item2, topos)
 	doSendMagicEffect(topos,2)
	doPlayerSay(cid, "chrzan koks" ,16)  -- dowolny tekst na miejsce "chrzan koks"
	doRemoveItem(item.uid, 1)
   	return 1
 
   end

w data/actions/actions.xml dodaj











<action itemid="7499" script="cygaro.lua" />

----------------------------------------------------------

Co do tych skryptów nie jestem pewien bo nie sprawdzałem ale myślę ze powinny być dobre w razie czego postaram się poprawić

to tak :

1.jaki plik mam wstawic? chodzi ci o skrypt czy mam wrzucic caly plik weapons.xml na no nw np.na hostuje.pl ??

2. dzieki :D zaraz sprawdze

edit :

niedziala ;/ wgl niedaje swiatla... dziala tak jak zwykly frozen

3. thx :D

edit :

niestety ;/ proca niestrzela z boltow ani strzal.... ;/ bije jak z fista

4. mozesz zrobic 1 item z tych 4 i opisac co gdzie jak ? :D

5. hmm

skrypt dales do szisza.lua

a

 

do data/actions/actions.xml

<action itemid="7499" script="cygaro.lua" />

dales cygaro xD:D

hmm zmienilem na szisze ^^

<action itemid="2093" script="szisza.lua" />

 

wiesz moze jak mozna zrobic zeby ta szisza zabierala te xxx many??

jak moge zrobic zeby szisza sie nie konczyla?... bo to troche bez sensu :D 1 buch i szisza znika xD

juz musze zaczac cb codziennie gdzies likeowac :D

i oczywiscie 5 do profilu :D codziennie 1

Opublikowano

Co do 1.

Wstaw kod.

Co do 2.

To nie wiem , bo zrobiłem ze frozen to runa i jak się jej użyje to utevo luxa się używa

Co do 3.

w data/items/items.xml wstaw zamiast starego :

    <item id="5907" article="a" name="slingshot">
        <attribute key="weight" value="4000" />
        <attribute key="weaponType" value="distance" />
        <attribute key="slotType" value="two-handed" />
        <attribute key="ammoType" value="bolt" />
        <attribute key="range" value="5" />
    </item>

Co do 4 :

data/actions

local outfits = {tu wpisujesz looktype moba}
local outfit =
	{
		lookType = 2,  -- tu tez
		lookHead = 0,
		lookBody = 0,
		lookLegs = 0,
		lookFeet = 0,
		lookAddons = 0
	}
local outfit0 =
	{
		lookType = 2,  -- tu tez
		lookHead = 0,
		lookBody = 0,
		lookLegs = 0,
		lookFeet = 0,
		lookAddons = 0
	}
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,1921) == -1 or getPlayerStorageValue(cid,1921) == #outfits then
setPlayerStorageValue(cid,1921,1)
doSetCreatureOutfit(cid, outfit0, -1)
else
for i=1,#outfits do
if getPlayerStorageValue(cid,1921) == i then
outfit.lookType = outfits[i]
doCreatureSay(cid, "Zamiana!", TALKTYPE_ORANGE_1)
doSetCreatureOutfit(cid, outfit, -1)
setPlayerStorageValue(cid,1921,i+1)
break
end
end
end
end

 

Co do 5 :

--[[
Script by Elff/Reaper7
-]]
function onUse(cid, item, fromPosition, itemEx, toPosition)
local condition = createConditionObject(CONDITION_PARALYZE) 
local number = math.random(1,2)
if number==1 then
   if item.itemid == 2093 and  getPlayerLevel(cid) >= 1 then
        doPlayerSendTextMessage(cid,21,"wpisz tekst")
        doCreatureAddMana(cid,-150)
        doSendMagicEffect(getThingPosition(cid), CONST_ME_MAGIC_GREEN)
        doRemoveItem(item.uid, 1)
        return 1
      else
        doPlayerSendCancel(cid,"wpisz tekst")
        doCreatureAddMana(cid,-150)
        doSendMagicEffect(getThingPosition(cid), CONST_ME_MAGIC_GREEN)
        doRemoveItem(item.uid, 1)
        setConditionParam(condition, CONDITION_PARAM_TICKS, 20000) 
        setConditionFormula(condition, -1, 40, -1, 40) 
        setCombatCondition(combat, condition) 
 
 
      end
      return 1
end  

Wiec tak, znalazłem coś takiego i edytowałem: po buchu odejmuje -150 many i paraliżuje ale chyba jest jedno użycie. Nie testowałem spróbuj do linijki

        doRemoveItem(item.uid, 1)

zamiast 1 dać np. 10000000000000000

Opublikowano

Co do 1.

Wstaw kod.

Co do 2.

To nie wiem , bo zrobiłem ze frozen to runa i jak się jej użyje to utevo luxa się używa

Co do 3.

w data/items/items.xml wstaw zamiast starego :



    <item id="5907" article="a" name="slingshot">
        <attribute key="weight" value="4000" />
        <attribute key="weaponType" value="distance" />
        <attribute key="slotType" value="two-handed" />
        <attribute key="ammoType" value="bolt" />
        <attribute key="range" value="5" />
    </item>

Co do 4 :

data/actions



local outfits = {tu wpisujesz looktype moba}
local outfit =
	{
		lookType = 2,  -- tu tez
		lookHead = 0,
		lookBody = 0,
		lookLegs = 0,
		lookFeet = 0,
		lookAddons = 0
	}
local outfit0 =
	{
		lookType = 2,  -- tu tez
		lookHead = 0,
		lookBody = 0,
		lookLegs = 0,
		lookFeet = 0,
		lookAddons = 0
	}
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,1921) == -1 or getPlayerStorageValue(cid,1921) == #outfits then
setPlayerStorageValue(cid,1921,1)
doSetCreatureOutfit(cid, outfit0, -1)
else
for i=1,#outfits do
if getPlayerStorageValue(cid,1921) == i then
outfit.lookType = outfits[i]
doCreatureSay(cid, "Zamiana!", TALKTYPE_ORANGE_1)
doSetCreatureOutfit(cid, outfit, -1)
setPlayerStorageValue(cid,1921,i+1)
break
end
end
end
end

 

Co do 5 :



--[[
Script by Elff/Reaper7
-]]
function onUse(cid, item, fromPosition, itemEx, toPosition)
local condition = createConditionObject(CONDITION_PARALYZE) 
local number = math.random(1,2)
if number==1 then
   if item.itemid == 2093 and  getPlayerLevel(cid) >= 1 then
        doPlayerSendTextMessage(cid,21,"wpisz tekst")
        doCreatureAddMana(cid,-150)
        doSendMagicEffect(getThingPosition(cid), CONST_ME_MAGIC_GREEN)
        doRemoveItem(item.uid, 1)
        return 1
      else
        doPlayerSendCancel(cid,"wpisz tekst")
        doCreatureAddMana(cid,-150)
        doSendMagicEffect(getThingPosition(cid), CONST_ME_MAGIC_GREEN)
        doRemoveItem(item.uid, 1)
        setConditionParam(condition, CONDITION_PARAM_TICKS, 20000) 
        setConditionFormula(condition, -1, 40, -1, 40) 
        setCombatCondition(combat, condition) 
 
 
      end
      return 1
end  

Wiec tak, znalazłem coś takiego i edytowałem: po buchu odejmuje -150 many i paraliżuje ale chyba jest jedno użycie. Nie testowałem spróbuj do linijki



        doRemoveItem(item.uid, 1)

zamiast 1 dać np. 10000000000000000

1. lap kod (weapons.xml):

 

 

<?xml version="1.0"?>
<weapons>
<!-- Rods -->
<wand id="2182" range="4" lvl="7" mana="2" enabled="1" exhaustion="0" script="snakebite rod.lua"><vocation id="2"/><vocation id="6"/></wand>
<wand id="2186" range="3" lvl="13" mana="3" enabled="1" exhaustion="0" script="moonlight rod.lua"><vocation id="2"/><vocation id="6"/></wand>
<wand id="2185" range="2" lvl="19" mana="5" enabled="1" exhaustion="0" script="necrotic rod.lua"><vocation id="2"/><vocation id="6"/></wand>
<wand id="2181" range="1" lvl="26" mana="8" enabled="1" exhaustion="0" script="terra rod.lua"><vocation id="2"/><vocation id="6"/></wand>
<wand id="2183" range="3" lvl="33" mana="13" enabled="1" exhaustion="0" script="hailstorm rod.lua"><vocation id="2"/><vocation id="6"/></wand>

<!-- Wands -->
<wand id="2453" range="10" lvl="10000" mana="10000" enabled="1" exhaustion="0" script="god wand.lua"><vocation id="1"/><vocation id="2"/><vocation id="5"/><vocation id="11"/><vocation id="10"/><vocation id="6"/></wand><wand id="2190" range="4" lvl="7" mana="2" enabled="1" exhaustion="0" script="wand of vortex.lua"><vocation id="1"/><vocation id="5"/></wand>
<wand id="2191" range="3" lvl="13" mana="3" enabled="1" exhaustion="0" script="wand of dragonbreath.lua"><vocation id="1"/><vocation id="5"/></wand>
<wand id="2188" range="2" lvl="19" mana="5" enabled="1" exhaustion="0" script="wand of decay.lua"><vocation id="1"/><vocation id="5"/></wand>
<wand id="2189" range="1" lvl="26" mana="8" enabled="1" exhaustion="0" script="wand of cosmic energy.lua"><vocation id="1"/><vocation id="5"/></wand>
<wand id="2187" range="3" lvl="33" mana="13" enabled="1" exhaustion="0" script="wand of inferno.lua"><vocation id="1"/><vocation id="5"/></wand>
<wand id="7451" range="5" lvl="200" mana="150" enabled="1" exhaustion="0" script="shadow wand.lua"><vocation id="1"/><vocation id="5"/></wand>
<wand id="7455" range="5" lvl="100" mana="150" enabled="1" exhaustion="0" script="ice rod.lua"><vocation id="2"/><vocation id="6"/></wand>

<!-- Distance weapons -->
<distance id="5907" level="10000" unproperly="1" event="function" value="default"> <!-- Proca -->
		<vocation id="7"/>
		<vocation id="13" showInDescription="0"/>
	</distance>
<distance id="2389" range="6" enabled="1" exhaustion="0" ammo="hand" script="spear.lua"></distance>
<distance id="2545" range="6" enabled="1" exhaustion="0" hitchance="80" ammo="removecount" script="poison arrow.lua"></distance>
<distance id="2546" range="6" enabled="1" exhaustion="0" hitchance="80" ammo="removecount" script="explosive arrow.lua"></distance>
<distance id="7838" range="6" enabled="1" exhaustion="0" hitchance="80" ammo="removecount" script="shiver arrow.lua"></distance>
<distance id="7839" range="6" enabled="1" exhaustion="0" hitchance="80" ammo="removecount" script="ice arrow.lua"></distance>
<distance id="7840" range="6" enabled="1" exhaustion="0" hitchance="80" ammo="removecount" script="flaming arrow.lua"></distance>
<distance id="7367" range="6" enabled="1" exhaustion="0" ammo="hand" script="enchanted spear.lua"></distance>
<distance id="7364" range="6" enabled="1" exhaustion="0" hitchance="100" ammo="removecount" script="sniper arrow.lua"></distance>
<distance id="7363" range="6" enabled="1" exhaustion="0" hitchance="100" ammo="removecount" script="piercing bolt.lua"></distance>
<distance id="7365" range="6" enabled="1" exhaustion="0" hitchance="60" ammo="removecount" script="onyx arrow.lua"></distance>
<distance id="7378" range="6" enabled="1" exhaustion="0" ammo="hand" script="royal spear.lua"></distance>
<distance id="3965" range="6" enabled="1" exhaustion="0" ammo="hand" script="hunting spear.lua"></distance>
<distance id="7366" range="6" enabled="1" exhaustion="0" hitchance="100" ammo="removecount" script="viper star.lua"></distance>
<distance id="7850" range="6" enabled="1" exhaustion="0" hitchance="80" ammo="removecount" script="earth arrow.lua"></distance>
<!-- Enchanted Weapons -->
<!-- Terra Weapons -->
<melee id="7854" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7855" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7856" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7857" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7858" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7859" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7860" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7861" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7862" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7863" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7864" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7865" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7866" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7867" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<melee id="7868" enabled="1" exhaustion="0" hitchance="80" script="terra weapons.lua"></melee>
<!-- Energy Weapons -->
<melee id="7869" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7870" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7871" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7872" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7873" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7874" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7875" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7876" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7877" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7878" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7879" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7880" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7881" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7882" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<melee id="7883" enabled="1" exhaustion="0" hitchance="80" script="en weapons.lua"></melee>
<!-- Fire Weapons -->
<melee id="7744" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7745" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7746" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7747" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7748" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7749" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7750" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7751" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7752" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7753" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7754" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7755" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7756" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7757" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<melee id="7758" enabled="1" exhaustion="0" hitchance="80" script="fire weapons.lua"></melee>
<!-- Ice Weapons -->
<melee id="7763" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7764" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7765" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7766" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7767" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7768" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7769" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7770" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7771" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7772" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7773" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7774" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7775" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7776" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
<melee id="7777" enabled="1" exhaustion="0" hitchance="80" script="ice weapons.lua"></melee>
</weapons>

 

 

 

2. hmm... mozesz zrobic frozena zeby byl normalnym frozenem tylko zwiekszyc moc swiatla? na 100% bo frozen daje tylko pare kratek :D

3. dzieki :D dziala !!!!

4. mam 1 problem...

gdy juz zrobilem sobie god scrolla

local outfits = 266
local outfit =
	{
		lookType = 266,  -- tu tez
		lookHead = 0,
		lookBody = 0,
		lookLegs = 0,
		lookFeet = 0,
		lookAddons = 0
	}
local outfit0 =
	{
		lookType = 266,  -- tu tez
		lookHead = 0,
		lookBody = 0,
		lookLegs = 0,
		lookFeet = 0,
		lookAddons = 0
	}
function onUse(cid, item, frompos, item2, topos)
if getPlayerStorageValue(cid,1921) == -1 or getPlayerStorageValue(cid,1921) == #outfits then
setPlayerStorageValue(cid,1921,1)
doSetCreatureOutfit(cid, outfit0, -1)
else
for i=1,#outfits do
if getPlayerStorageValue(cid,1921) == i then
outfit.lookType = outfits[i]
doCreatureSay(cid, "Zamiana!", TALKTYPE_ORANGE_1)
doSetCreatureOutfit(cid, outfit, -1)
setPlayerStorageValue(cid,1921,i+1)
break
end
end
end
end

 

po kliknieciu zmienia w goda :D (wyglad)(w silniku w errorze pisze figurka goda bo jeszcze nazw niezmienilem :D a zmienilem itemka xD...)

po relogu wraca normalny wyglad :D i tak ma byc

ale po relogu jak klikam na to to moj looktype sie nie zmienia :/ a w silniku wyskakuje takie cos

screen :

 

1372427374-U374573.png

 

5. Jak klikam na szisze nic sie nie dzieje... nawet nic w silniku nie wyskakuje ;/

Opublikowano

Co do wanda to będę potrzebował jeszcze 2 pliki a dokładniej:

wand of cosmic energy.lua

wand of decay.lua

Co do frozena to później zobaczę.

Z outfitami to nie wiem.

A sziszy mi się nie chce robić ;<

Opublikowano

Co do wanda to będę potrzebował jeszcze 2 pliki a dokładniej:

wand of cosmic energy.lua

wand of decay.lua

Co do frozena to później zobaczę.

Z outfitami to nie wiem.

A sziszy mi się nie chce robić ;<

wands :

wand of cosmic energy :

 

 







local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -40, 0, -60)

function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end

 

 

 

 

 

wand of decay :

 

 







local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -30, 0, -50)

function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end

 

 

 

 

 

outfit :

;/ aha

 

frozen:

ok :D

 

szisza :

;/ aha

a mozesz sprobowac zrobic szisze z ktorej mozna palic i ktora dodaje losowo skill co 1 buch inny :D ?? :D

Opublikowano

Teraz 1 Skrypt wiec:

data/weapons/weapons/xml dodajesz do kodu tu :

<wand id="2162" range="3" lvl="1" mana="1" enabled="1" exhaustion="0" script="off.lua"><vocation id="2"/><vocation id="6"/></wand>
<wand id="2163" range="3" lvl="1" mana="1" enabled="1" exhaustion="0" script="on.lua"><vocation id="2"/><vocation id="6"/></wand>

rage="odleglosc z jakiej ma bic"

lvl="od ktorego lvl'a"

mana="ile many z kazdym ciosem"

enabled='1- wlaczona 0- wylaczona"

exhaustion="cooldown"

vocation="jaka profa"

potem w data/weapons/scripts zrób 2 pliki on.lua i off.lua

w off.lua :

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -30, 0, -50)

function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end

w miejscu 0, -30, 0, -50)

są to średnie obrażenia można ustawić np. 0, -1000, 0, -10000)

a drugi plik on.lua

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -40, 0, -60)

function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end

obrażenia można zmienić analogicznie jak na górze.

Opublikowano

Teraz 1 Skrypt wiec:

data/weapons/weapons/xml dodajesz do kodu tu :





<wand id="2162" range="3" lvl="1" mana="1" enabled="1" exhaustion="0" script="off.lua"><vocation id="2"/><vocation id="6"/></wand>
<wand id="2163" range="3" lvl="1" mana="1" enabled="1" exhaustion="0" script="on.lua"><vocation id="2"/><vocation id="6"/></wand>

rage="odleglosc z jakiej ma bic"

lvl="od ktorego lvl'a"

mana="ile many z kazdym ciosem"

enabled='1- wlaczona 0- wylaczona"

exhaustion="cooldown"

vocation="jaka profa"

potem w data/weapons/scripts zrób 2 pliki on.lua i off.lua

w off.lua :





local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -30, 0, -50)

function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end

w miejscu 0, -30, 0, -50)

są to średnie obrażenia można ustawić np. 0, -1000, 0, -10000)

a drugi plik on.lua





local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ENERGYDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -40, 0, -60)

function onUseWeapon(cid, var)
	return doCombat(cid, combat, var)
end

obrażenia można zmienić analogicznie jak na górze.

 

nie strzela ;/ bije z fista ;/

 

@edit

wszystko jest ok :D

musialem dodac linijke w item.xml

<attribute key="weaponType" value="wand"/> :D

Opublikowano

Co do itemu zmieniajacego to:


function onUse(cid, item, fromPosition, itemEx, toPosition)

    if item.itemid == 2349 then   -- item id
         doPlayerSendTextMessage(cid,22,"Zamiana!")  
        doCreatureChangeOutfit(cid, 266)    -- looktype
        doRemoveItem(uid, 1)
    end
end  
Opublikowano

 

Co do itemu zmieniajacego to:






function onUse(cid, item, fromPosition, itemEx, toPosition)

    if item.itemid == 2349 then   -- item id
         doPlayerSendTextMessage(cid,22,"Zamiana!")  
        doCreatureChangeOutfit(cid, 266)    -- looktype
        doRemoveItem(uid, 1)
    end
end  

nie zmienia ;/

pisze tylko zamiana! nad nickiem postaci i w chacie na zielono

screen z silnika :

 

1372592741-U374573.png

 

Opublikowano

Nie wiem czy to coś da ale spróbować można, zmień nazwę figurka goda.lua na 1 wyrazowe słowo np. figurkagoda.lua

niestety to nic nie dalo ;/

ale znalazlem skrypt ktory dziala :D

---By Miziak----
 function onUse(cid, item, frompos, item2, topos)
 local storage = 1800
 setPlayerStorageValue(cid, storage+1, getCreatureOutfit(cid).lookHead)
 setPlayerStorageValue(cid, storage+2, getCreatureOutfit(cid).lookBody)
 setPlayerStorageValue(cid, storage+3, getCreatureOutfit(cid).lookLegs)
 setPlayerStorageValue(cid, storage+4, getCreatureOutfit(cid).lookFeet)
 standardoutfit = { lookType = 266, lookHead = getPlayerStorageValue(cid, storage+1), lookBody = getPlayerStorageValue(cid, storage+2), lookLegs = getPlayerStorageValue(cid, storage+3), lookFeet = getPlayerStorageValue(cid, storage+4), lookAddons = getPlayerStorageValue(cid, storage+5) }
 doSetCreatureOutfit(cid, standardoutfit, 10*60*1000)
 local pos = getPlayerPosition(cid)
doSendMagicEffect(pos, 14)
 end

Zostal frozen i szisza :D

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...