JonathanRhyS Posted May 22, 2013 Posted May 22, 2013 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?
Michaeltje Posted May 22, 2013 Posted May 22, 2013 Create a loop for when target_id = [id from chests] to add it to the blacklist can add more loops for other mobs you dont wanna spoil
JonathanRhyS Posted May 23, 2013 Author Posted May 23, 2013 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?
Michaeltje Posted May 23, 2013 Posted May 23, 2013 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
Michaeltje Posted May 24, 2013 Posted May 24, 2013 Got it. Thanks :) Np May be locked then i guess :)
Recommended Posts