Jump to content
  • 0

detect users within the map


joelolopez

Question


  • Group:  Members
  • Topic Count:  154
  • Topics Per Day:  0.03
  • Content Count:  493
  • Reputation:   46
  • Joined:  01/24/12
  • Last Seen:  

is this possible???>>item that allows you to see other players within the map as if all the players within the map is your party member...displays markings on y0ur mini map...

Link to comment
Share on other sites

Recommended Posts


  • Group:  Members
  • Topic Count:  154
  • Topics Per Day:  0.03
  • Content Count:  493
  • Reputation:   46
  • Joined:  01/24/12
  • Last Seen:  

wow skorm youre super!!!!!!! wahaha its working 99%!!!!!

i encounter a bug but its more stable than your other previous script!!!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  154
  • Topics Per Day:  0.03
  • Content Count:  493
  • Reputation:   46
  • Joined:  01/24/12
  • Last Seen:  

lol sure no prob, but y not make ur script bug free :>

 

i realy love ur  script but still having problems with displaying 4 marks on the mini map after loging out and logingin

 

can we make it 100% fully working and bug free :>? /lv/no1/ok

 

i just cant solve this kind of problems all by myself because im no good in advance scripting like urs... /sob

Edited by joelolopez
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

Because you didn't tell me what the bug was?

I have been unable to find any bugs.

Ugh Yeah I see the problem

Thank you for helping me... I beleive it's fixed now :)

Edited by Skorm
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  154
  • Topics Per Day:  0.03
  • Content Count:  493
  • Reputation:   46
  • Joined:  01/24/12
  • Last Seen:  

i was going to report this to you but i got disconnected lol

 

sir skorm still having problems displaying multi marks after loging out and loging in
 
it always leave 2 red marks
in the map, its suppose to be 4 marks because 4 players is in the map
 

but its already fixed!!! and i can say that this is 100% working!!! thanks sir skorm :>

 

thanks for making this possible!!!

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

No offense to Skorm but his script consume too much permanent variable for me

 

-	script	view_map	-1,{
OnInit:
	.size_name = query_sql( "SELECT `name` FROM `char` WHERE `online` = 1 LIMIT 128", .name$ );
	end;
OnPCLoginEvent:
	.name$[ .size_name ] = strcharinfo(0);// max 128 players
	.size_name++;
OnEventView:
	.@name_self$ = strcharinfo(0);
	sleep2 2;
	while( playerattached() && @item_equipped ) {
		.@map_self$ = strcharinfo(3);
		for( .@i = 0; .@i < .size_name; .@i++ ) {
			if( .name$[ .@i ] != .@name_self$ ) {
				getmapxy .@map$, .@x, .@y, 0, .name$[ .@i ];
				if( .@map$ == .@map_self$ ) {
					.@size_tmp++;
					viewpoint 1, .@x, .@y, .@size_tmp, 0xFF0000;
				}
			}
		}
		sleep2 2000;
		for( .@i = 1; .@i < .@size_tmp +1; .@i++ )
			viewpoint 2, 0, 0, .@i, 0xFF0000;
		.@size_tmp = 0;
	}
	end;
OnPCLogoutEvent:
	while( .@i < .size_name && .name$[ .@i ] != strcharinfo(0) ) .@i++;
	if( .@i == .size_name ) end;
	deletearray .name$[ .@i ], 1;
	.size_name--;
	end;
}

 

Item sample - must be equipped

2201,Sunglasses,Sunglasses,5,5000,,100,,0,,0,0xFFFFFFFF,7,2,512,,0,0,12,{ doevent "view_map::OnEventView"; },{ set @item_equipped, 1; },{ set @item_equipped, 0; }
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

Firstly I'd like to clarify as I said I did not make the original file structure the BlackHoleEvent was made by a different scripter of unknown origin and later modified by me as my file states. Secondly, yes, the above script does use permanant global variables which it then DELETES! right after that player logsout. -_-* I really get frusterated with mods feeling the need to 1UP everyone else here. Here's a hint Capuche there are hundereds of unanswered SCRIPT REQUESTs out there that I'm sure would love your scripting expertise how about you do one of those, and leave my posts alone. Thanks~

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  98
  • Topics Per Day:  0.02
  • Content Count:  1302
  • Reputation:   77
  • Joined:  12/04/12
  • Last Seen:  

Firstly I'd like to clarify as I said I did not make the original file structure the BlackHoleEvent was made by a different scripter of unknown origin and later modified by me as my file states. Secondly, yes, the above script does use permanant global variables which it then DELETES! right after that player logsout. -_-* I really get frusterated with mods feeling the need to 1UP everyone else here. Here's a hint Capuche there are hundereds of unanswered SCRIPT REQUESTs out there that I'm sure would love your scripting expertise how about you do one of those, and leave my posts alone. Thanks~

 

 

ow man. relax. cool. capuche just rebuke. its good for you man to start because u have a basic of scripting.. relax ok :)

dont emotional.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

Firstly I'd like to clarify as I said I did not make the original file structure the BlackHoleEvent was made by a different scripter of unknown origin and later modified by me as my file states. Secondly, yes, the above script does use permanant global variables which it then DELETES! right after that player logsout. -_-* I really get frusterated with mods feeling the need to 1UP everyone else here. Here's a hint Capuche there are hundereds of unanswered SCRIPT REQUESTs out there that I'm sure would love your scripting expertise how about you do one of those, and leave my posts alone. Thanks~

 

You both great. Relax.. We all need your help, guidance here.  /no1 

 

I find this script very useful. Will test it later. /ok

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  326
  • Reputation:   47
  • Joined:  04/01/12
  • Last Seen:  

Firstly I'd like to clarify as I said I did not make the original file structure the BlackHoleEvent was made by a different scripter of unknown origin and later modified by me as my file states. Secondly, yes, the above script does use permanant global variables which it then DELETES! right after that player logsout. -_-* I really get frusterated with mods feeling the need to 1UP everyone else here. Here's a hint Capuche there are hundereds of unanswered SCRIPT REQUESTs out there that I'm sure would love your scripting expertise how about you do one of those, and leave my posts alone. Thanks~

oh man, chill, don't be like that, capuche din't say or even mean he got better scripting or whatever...

and he's just doing hes job? -> 1. he's a Scripting Moderator and another is

 

No offense to Skorm but his script consume too much permanent variable for me

right?

Link to comment
Share on other sites


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

The  Blackhole Event was written by @goddameit , and yes it did consume some permanent variable stuff...not a good choices for newbie who dont know the consequences of using too muc of these variable...even thought we know the variable will be removed if players logout.

 

for Capuche method, althought i didnt try it...but the trick will fail if the online users goes up to above 128....so its only limited to 127 players as stated by Capuche in his script .

but still can be used in a small population server..

 

@skorm

relax.. ^^ 

i believe Capuche try to voice out what he think about the script...

and he is just trying to show another method to done this trick / request ~

 

 


Since i have time, i tried this with a minor source mod...

for TS..if you want,..you can try this...

Apply this showmapusers.patch ( perfer diff manually )

* Usage : 
*	showmapusers( <toggle>,<color> );
*	Toggle : 1 = On , 2 = Off

Example :
showmapusers( 1,0xFF0000 );

 

 

Inside Item_db.txt

.....{},{ showmapusers( 1,0xFF0000 ) },{ showmapusers( 2,0xFF0000 ) }

 

 

 

Preview :

6gKMH7v.jpg

 

erm..sorry the picture quite blur as i try to enlarge it.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

The topic was quite interesting so I also wanted to try for fun that's all

 

I didn't want to hurt you or anything

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  1268
  • Reputation:   382
  • Joined:  02/03/12
  • Last Seen:  

I hadn't slept in 48 hours before posting that, but again I still agree with it. I come from America and when someone says "No offense" it's because that're about to say something extremely offensive, which transpires as condescendence. If you hadn't said anything in regards to my post and instead just posted your script I probably wouldn't've reacted as such. Anyways I'm done posting on this thread/section to help people, because I simply lack the time. If I see something that piques my interests I'll message you. Alternatively, if you have a small request they're always welcome in my inbox. Thanks~

The  Blackhole Event was written by @goddameit.

Thanks for this, Gaddameit, really is a great scripter, and I'd like to give him credit for his work!
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  175
  • Reputation:   7
  • Joined:  09/13/12
  • Last Seen:  

how can we disable this in woe?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   7
  • Joined:  10/08/12
  • Last Seen:  

@Emistry does this work for revision 17218?? and does this have limits that you know?

Link to comment
Share on other sites


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

how can we disable this in woe?

which script you are using ?

 

 

 

@Emistry does this work for revision 17218?? and does this have limits that you know?

erm... i havent download the latest svn...i am still using revision 17049...it should be working...but you have to diff it manually...

for the limitation...everything that done through source mod can work better than script..and have a higher / greater limit than the npc script itself.

i dont know what is the limit for using source, but i am sure it can be higher than 128 players.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   7
  • Joined:  10/08/12
  • Last Seen:  

Ohh ok...thats glad to hear...ill try test it soon

Edited by miczster
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  400
  • Reputation:   5
  • Joined:  12/05/11
  • Last Seen:  

Posted (edited) · Hidden by Emistry, April 4, 2013 - Author removed the contents.
Hidden by Emistry, April 4, 2013 - Author removed the contents.

-EDIT-

Edited by uDe
Link to comment

  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  175
  • Reputation:   7
  • Joined:  09/13/12
  • Last Seen:  

how can we disable this in woe?

which script you are using ?

 

 

 

>@Emistry does this work for revision 17218?? and does this have limits that you know?

erm... i havent download the latest svn...i am still using revision 17049...it should be working...but you have to diff it manually...

for the limitation...everything that done through source mod can work better than script..and have a higher / greater limit than the npc script itself.

i dont know what is the limit for using source, but i am sure it can be higher than 128 players.

 

 

well i am not using any script... i just dint want people to use this in woe thats all. thats y i was asking

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  40
  • Topics Per Day:  0.01
  • Content Count:  275
  • Reputation:   7
  • Joined:  10/08/12
  • Last Seen:  

 

how can we disable this in woe?

which script you are using ?

 

 

 

>@Emistry does this work for revision 17218?? and does this have limits that you

know?

erm... i havent download the latest svn...i am still using revision 17049...it should be working...but you have to diff it manually...

for the limitation...everything that done through source mod can work better than script..and have a higher / greater limit than the npc script itself.

i dont know what is the limit for using source, but i am sure it can be higher than 128 players.

 

well i am not using any script... i just dint want people to use this in woe thats all. thats y i was asking

 

I plan to use this but for GM only...and for the woe...u can use the item_deny source modif to restrict the item for castles(WOE)

Link to comment
Share on other sites

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...