![]() |
| |||||||
| Home | GzP Upload | GzP Arcade | Register | vbBux / vbPlaza | All Albums | FAQ | Donate | Members List | Calendar | Mark Forums Read |
![]() |
| | Thread Tools | Display Modes |
| | #1 |
| Registered User | PvP Script.. Could Some One Help Me Make My PvP Script Not Attack Me Dx.. Cause If It Attacks Me I Die Most Of The Time And Lose Exp Lol... Heres My Function : Code: function Example.PvP ( Arguments )
local Target = GetTarget ()
if (Target ~= nil) then
Actor = Target
else
Actor = GetPlayer ()
end
local ActorName = Actor:Get ( "Name" )
if ( not ActorName == *MyNameHere* ) then
UseSkill (Actor, tonumber (Arguments))
end
return true
end
---------- Ill Check The Post Often.. *Pls Reply Fast xD* I Got It To Work.. ( If ActorName ~= *MyNameHere* ) Last edited by skillzkillz™; 06-20-2008 at 06:18 PM. Reason: Automerged Doublepost |
| | |
| Sponsored Links |
| |
| | #2 |
| Registered User | Re: PvP Script.. hmm i think that this line is what kills you but i dont sure: Code: else
Actor = GetPlayer ()
|
| | |
| | #4 |
| Guest | Re: PvP Script.. Code: function wtfux.pvp ( Arguments , Device)
local Actor = GetTarget()
if(Actor == nil) then
OutputF ( Device, NAME_Warning, "Could not attack target: No target given." )
return true;
end
if(Arguments == nil) or (Arguments == "") then
Attack(Actor,1)
OutputF ( Device, NAME_Log, "Attacked %s!", Actor:Get('Name') )
return true;
end
UseSkill (Actor, wtfux.getskill(Arguments)) --U can use tonumber(); to, but then u cant use skill names.
OutputF ( Device, NAME_Log, "Attacked %s with Skill %s",Actor:Get('Name'), Arguments )
return true
end
With wtfux script, u can target somebody and use the skill command ("Uses a skill on you or your selected target"). Last edited by wtfux; 06-21-2008 at 08:46 AM. |
|
| | #5 |
| Registered User | Re: PvP Script.. Man dont use a script for PVP is a bad idea,this was made to lvl and make more easy to play flyff,but with a pvp script the ppl can detect that ur hacking more easily,well that is my opinion. ![]() |
| | |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |