Jump to content

Recommended Posts

Posted

Mentioned that auto spoil-sweep happens like only 20% of the mobs I kill. I found some scripts for auto spoil but all have auto target but I want to spoil certain targets.

Also, I configure my l2net to ignore chests and many times I find it "stuck" hitting chests, even though I have ignore chests on and hitting certain targets on. Any help?

Posted

Cant really understand what you mean... My script is this

 

DEFINE INT ZERO 0

DO

IF TARGET_CUR_HP == ZERO

USE_SKILL 42

SLEEP 3000

IF TARGET_SPOILED == ZERO

PRINT_TEXT "targeting ..."

TARGET_NEAREST

ENDIF

ENDIF

SLEEP 1000

LOOP TRUE

 

How should i make it?

Posted

I'm been out of l2net-scripting for a while, but i think there's an easier way

 

just create a loop like this:

 

DEFINE INT ZERO 0

DO

IF TARGET_CUR_HP == ZERO

USE_SKILL 42

SLEEP 3000

IF TARGET_SPOILED == ZERO

PRINT_TEXT "targeting ..."

TARGET_NEAREST_ID [iD from mob you farm]  //ID from mod you wanna farm

ENDIF

ENDIF

SLEEP 1000

LOOP TRUE

 

I dont know how many mobs you have to farm, but you can add multiple loops like this:

 

Define_global INT 0

THREAD Spoil VOID 0
THREAD Spoil2 VOID 0
While ( TRUE == TRUE )
Sleep 5000
Wend

End_Script
[hr]

Function Spoil
DO
IF TARGET_CUR_HP == ZERO
USE_SKILL 42
SLEEP 3000
IF TARGET_SPOILED == ZERO 
PRINT_TEXT "targeting ..."
TARGET_NEAREST_ID [iD from mob you farm]  //ID from mod you wanna farm
ENDIF
ENDIF
SLEEP 1000
LOOP TRUE

return void

Function Spoil2
DO
IF TARGET_CUR_HP == ZERO
USE_SKILL 42
SLEEP 3000
IF TARGET_SPOILED == ZERO 
PRINT_TEXT "targeting ..."
TARGET_NEAREST_ID [iD from mob you farm]  //ID from mod you wanna farm
ENDIF
ENDIF
SLEEP 1000
LOOP TRUE

return void

 

Didn't test it.. dont have an l2 server atm :p

But should work, i guess

 

u can add infinte loops like this, doesnt matter for the script. Just place them in new functions

Guest
This topic is now closed to further replies.


×
×
  • Create New...