• You've discovered RedGuides 📕 an EverQuest multi-boxing community 🛡️🧙🗡️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • IS THIS SITE UGLY? Change the look. To dismiss this notice, click the X --->

/camp ! (1 Viewer)

Drakken

New member
Joined
Aug 23, 2007
RedCents
Can some one tell me what I should add to a code to camp out if a PC enters my zone that I have a bot running in?

I did

/if (${Spawn[pc].ID}) {
/quit

But it logs me out for me bieng there heh.
 
Somebody else has this done here. It's something like figure out how many are going to be in your group, then make the code check to see if there are more people than that in the zone, if so, campout.
 
Rich (BB code):
 sub main
 /declare groupsize int outer 6
:Loop
 /if (${SpawnCount[pc]}>${groupsize}) {
 /camp desktop
 /delay 1s
 /keypress instant_camp
 }
 /goto :Loop
 /return
 
I am kinda new to this whole scripting language so can someone help me I am just trying to add some PC detection to afk bard macro.

Rich (BB code):
#turbo  
#Event Zoned "#*#You have entered#*#"  
  
  
Sub Main  
  /declare groupsize int outer 6
    
:loopstart 
/doevents  
/call GMcheck 
/call PCcheck 
/if (${Target.Level}>67) /tar npc vassal next 
/if (${Target.Distance}>220) /keypress esc  
/if (${Target.ID}==FALSE) /tar NPC vassal  radius 220  
/delay 10  
/goto :loopstart  
/return  
  
 Sub GMcheck  
 /if (${Spawn[gm].ID}) {  
 /echo Gm detected
 /mqlog GM - Lets hope we get out before he got in!  
 /beep 
 /beep 
 /beep  
 /endmac
 /unload
 /q
 }  
 /return  
	
 Sub PCcheck
 /if (${Spawn[pc].ID}>${groupsize}) {
 /echo New player in Zone!
 /beep
 }
 /return

  
 sub event_zoned  
 /delay 5s  
 /sit  
 /camp desk  
 /endmac 
 /return

Problem is I only want it to beep once per new person in zone (if possible). ATM it beeps continuously til the offending person zones out or wutev. I dont run the macro completely AFK, and since I play on pvp I need this so i can see if there is a threat in the zone or whatnot.
 
Rich (BB code):
  #turbo  
  #Event Zoned "#*#You have entered#*#"  
    
    
  Sub Main  
    /declare groupsize int outer 6
    /declare groupsize2 int outer 0
 /declare beeped timer outer 0
  :loopstart 
  /doevents  
  /call GMcheck 
  /call PCcheck 
  /if (${Target.Level}>67) /tar npc vassal next 
  /if (${Target.Distance}>220) /keypress esc  
  /if (${Target.ID}==FALSE) /tar NPC vassal  radius 220  
  /delay 10  
  /goto :loopstart  
  /return  
    
   Sub GMcheck  
   /if (${Spawn[gm].ID}) {  
   /echo Gm detected
   /mqlog GM - Lets hope we get out before he got in!  
   /beep 
   /beep 
   /beep  
   /endmac
   /unload
   /q
   }  
   /return  
  	
   Sub PCcheck
  /if ((${groupsize2}>${groupsize}) && (${groupsize2}>${SpawnCount[pc]}) && ${beeped}) {
    /varset groupsize2 ${SpawnCount[pc]}
    }
   /if ((${SpawnCount[pc]}>${groupsize2}) && !${beeped}) {
     /echo New player in Zone!
     /beep
    /varset beeped 5m
    /varset groupsize2 ${SpawnCount[PC]}
     }
   /return
  
    
   sub event_zoned  
   /delay 5s  
   /sit  
   /camp desk  
   /endmac 
   /return
 
Last edited:
That gave an error that said the variable beeped is not found.

Also there will always only be me in the group, so technically there will be no group, so that might make things easier?

Basically if there is more than 1 person in the zone it should beep, but this check only needs to be ran like every 5 mins or something... not sure how to code that.

I do appreciate the help :)
 
Beeped as soon as I loaded it, only one in zone, so I have a feeling it is gonna beep again soon regardless if anyone zones in.

edit: no second beep after 5 mins, gonna see if it functions properly when someone zones in.
 
/camp !

Users who are viewing this thread

Back
Top