Jump to content
  • 0

helpmob & cart item check b4 enter into map


musikyru

Question


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  01/04/12
  • Last Seen:  

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

 

 

 

 

 

Link to comment
Share on other sites

8 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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;
		}
	}
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  01/04/12
  • Last Seen:  

@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?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  01/04/12
  • Last Seen:  

how to apply this func for waper can you give me sample on how to work with is one http://upaste.me/r/451fc6

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

=='' 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;
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  01/04/12
  • Last Seen:  

thnx for helping me sir.really appreciate it.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  25
  • Reputation:   0
  • Joined:  01/04/12
  • Last Seen:  

@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

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

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.

×
×
  • Create New...