Jump to content
  • 0

helpmob & cart item check b4 enter into map


Question

Posted

can anyone help me about checking mob into certain map.

 

like["+ getmapuser("prontera") +"]

 

i just want to make an script looks like this

 

Prontera[0]for checking player[0]for checking mob.

ist this is correct term for checking mobs on map getmapmobs ["+ getmapmobs("prontera") +"]

 

 

 

and how to make an pvp warper that checking the cartitem b4 warp.

i just want to make an none donator ill use an setarray for those item can anyone made me a pvp waper for none donate

by checking item into cart and inventory.

 

setarray .NoDonator_ids[0], 26061, 26062, 26063;

 

 

 

for( set .@i, 0; .@i <getarraysize(.NoDonator_ids); set .@i, .@i + 1 ) {
if (countitem(.NoDonator_ids[.@i])) {
mes "[^008000Battle Warper^000000]";
mes "You can not bring Donate items in this pvp.";
close;
}
}
 

 

 
THANKS YOU VERY MUCH IN ADVANCE rAthenianz /no1  /kis2

 

 

 

 

 

8 answers to this question

Recommended Posts

Posted

1.

getapmobs has been removed long ago.

You can check monster count on specific map using mobcount

 

2.


setarray .item,5001,5002,5003;
.item_size = getarraysize( .item );

.@has_cart = checkcart();
for ( .@i = 0; .@i < .item_size; .@i++ ) {
	if ( countitem( .item[.@i] ) ) {
		mes "Remove "+getitemname( .item[.@i] )+" from your inventory.";
		close;
	}
	else if ( .@has_cart ) {
		if ( cartcountitem( .item[.@i] ) ) {
			mes "Remove "+getitemname( .item[.@i] )+" from your cart.";
			close;
		}
	}
}
Posted

@Emistry thankyou very much for fast reply..ill try it later im on work..

 

can i ask a little mod for this script?

how to make this call func so that every time i add this script into npc before warp so that i will not copy all the script and my script less size and return to the conversation before warp the player.

 

  1. .@has_cart = checkcart();
  2. for ( .@i = 0; .@i < .item_size; .@i++ ) {
  3. if ( countitem( .item[.@i] ) ) {
  4. mes "Remove "+getitemname( .item[.@i] )+" from your inventory.";
  5. close;
  6. }
  7. else if ( .@has_cart ) {
  8. if ( cartcountitem( .item[.@i] ) ) {
  9. mes "Remove "+getitemname( .item[.@i] )+" from your cart.";
  10. close;
  11. }
  12. }
  13. }

 

  1.  

is this posible  for call func before warp?

Posted

=='' it's already shown in the link given.
 

	.@item = F_checkitem( 5022,607,608,5353 );
	if ( .@item ) {
		mes "Please remove "+getitemname( .@item );
		close;
	}
	warp "prontera",155,181;
Posted

@Emistry sir can i ask about the 2ng topic of the script.is this for hercules emulator im using rA emulator and igot error on cart checking.can you please make me one compatible for rA one.TIA ihope you help me agin for this one and sory for late reply about your post.more power rA

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...