What's new
  • logo_cipsoft
    Latest servers:
    New servers will open on: 19th Feb 2025:
    Noctalia (Open PvP) Ignitera (Open PvP) us_logo Xybra (Open PvP)

[8.1]Problem z Assassin star'ami

Status
Not open for further replies.

Arczi_13

User
Joined
Apr 12, 2008
Messages
12
Reaction score
1
Witam mam problem z assassin star zmieni?em jego wygl?d z throwing stara na normalny. I jak uderzam z assassin star?w to niepokazuj? jak leci. Co mam robi? PLX Pom??cie

oto co mam w items.xml o assassin star:

<item id="7368" article="an" name="assassin star" plural="assassin stars">
<attribute key="weight" value="200"/>
<attribute key="attack" value="65"/>
<attribute key="weaponType" value="distance"/>
<attribute key="shootType" value="redstar"/>
<attribute key="range" value="5"/>
<attribute key="breakChance" value="100"/>

Co mam zmieni? pom??cie!!!
 

Atlas

Advanced User
Joined
May 29, 2008
Messages
339
Reaction score
19
Witam mam problem z assassin star zmieni?em jego wygl?d z throwing stara na normalny. I jak uderzam z assassin star?w to niepokazuj? jak leci. Co mam robi? PLX Pom??cie

oto co mam w items.xml o assassin star:

<item id="7368" article="an" name="assassin star" plural="assassin stars">
<attribute key="weight" value="200"/>
<attribute key="attack" value="65"/>
<attribute key="weaponType" value="distance"/>
<attribute key="shootType" value="redstar"/>
<attribute key="range" value="5"/>
<attribute key="breakChance" value="100"/>

Co mam zmieni? pom??cie!!!

sprawdz w global.lua jak maszopisany rzut gwiazda :)
 

Arczi_13

User
Joined
Apr 12, 2008
Messages
12
Reaction score
1
Mo?e jaka? podpowied?, bo nie wiem gdzie szuka?. W jakiej linijce to jest?
 

luki02006

Advanced User
Joined
May 30, 2008
Messages
175
Reaction score
14
Tworzymy plik assassin star.lua i wklejamy (data\weapons\scripts\assassin star.lua)

Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, 1)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 18)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -0.1, -10, -0.4, -280)

function onUseWeapon(cid, var, item)

chance = 9

quebrar = math.random(1,chance)
if quebrar == 1 then
doPlayerRemoveItem(cid,7368,1)

end

return doCombat(cid, combat, var)
end


Potem do weapons.xml (data\weapons.xml)
Linijke


Code:
<distance id="7368" range="[COLOR="Lime"]7[/COLOR]" lvl="[COLOR="Red"]80[/COLOR]" enabled="1" exhaustion="0" hitchance="300" ammo="hand" script="assassin star.lua"><vocation id="3"/><vocation id="7"/></distance>


Do items.xml

Code:
<item id="7368" article="an" name="assassin star" plural="assassin stars">
<attribute key="weight" value="200"/>
<attribute key="attack" value="80"/>
<attribute key="weaponType" value="distance"/>
<attribute key="ammoType" value="spear"/>
<attribute key="shootType" value="redstar"/>
<attribute key="breakchance" value="40"/>


Od jakiego lvla
 
Last edited:

Y4rR0

User
Joined
Jun 4, 2008
Messages
22
Reaction score
1
[...]

Code:
<distance id="7368" range="[COLOR="Lime"]7[/COLOR]" lvl="[COLOR="Red"]80[/COLOR]" enabled="1" exhaustion="0" hitchance="300" ammo="hand" script="assassin star.lua"><vocation id="3"/><vocation id="7"/></distance>


[...]

Od jakiego lvla
to jest liczba zabranych soul po uderzeniu

Moze jestem w bledzie ale range to chyba zasieg.
BTW od kiedy assassin stary zabieraja soule?
 

Masiar

Advanced User
Joined
Apr 12, 2008
Messages
274
Reaction score
21
Luki wszystko wyja?ni?, aby zapobiec nadmiernemu spamerstwu zamykam.
 
Status
Not open for further replies.
Top