![]() |
Custom bigmap. (For gmaps only)
Heres a decent attempt at recreating the map.
How it works Firstly, there is a control NPC which gets the locations of each player no more than once a second. The map NPC on the client then requests this info from the control NPC. Why have I done it like this? To minimize the amount of info needing to be sent backwards and forwards continously. As it stands, information is only collected when one or more people are viewing the map.* * though this solution would be slightly less efficient if there was always going to be one or more people viewing the map, e.g. if it were to be used as a minimap. However, this is not the case so the way it's done is like that for a reason. If it were to be used as a minimap i'd have the control npc collect the info continously rather than waiting for requests from the client Features:
The scripts: MapDB (control NPC) PHP Code:
PHP Code:
In the MapDB npc you must set this.gmapname to the name of the gmap being used. In -Map (serverside) you should set this.staffGuilds and this.allowedAccounts to allow staff to use ctrl+click warping In -Map (clientside) you need to set the following: this.mapimg The name of the image of the map. this.mapimgwidth The width, in pixels, of the map image this.mapimgheight The height, in pixels, of the map image this.levelswide The width, in levels of the gmap this.levelshigh The height, in levels of the gmap. this.gmapname The name of the .gmap corresponding to the map image. Hope some people find this useful and please give credit where it's due! :) |
Quote:
Because that will automatically check if they have rights or not and saves time, then you can use that sys as an extra for staff who shouldnt have rc Hope some people find this useful and please give credit where it's due! :) |
My old map script just got ownt. Time to get going to the workshop!
|
Quote:
|
Nice, too bad this forum doesn't have a rep system, or I would have rep you.
|
Quote:
Eww at preset staff strings, try this: http://forums.graalonline.com/forums...ad.php?t=67868 |
hmm, yes but can I get the persons staff position from that? Currently have some scripts available to certain staff positions.
I cant access graal.net to check the script at the moment, unfortunatly. |
Yes, it loops through the staff= part of serveroptions, so you could easily modify the script so that it sets the staff position aswell.
Script: PHP Code:
|
Quote:
|
Quote:
|
I cannot get requesttext() to work.
I trying to do it the same way as your script. Heres all i'm trying to do: PHP Code:
|
Quote:
I tried with both clientrc enabled and disabled. With clientrc enabled, it worked fine. Without clientrc enabled, it didn't. :) |
Quote:
params[1] (sent as textlines.tokenize() in the trigger): PHP Code:
Now, lets try it with Client-RC! PHP Code:
|
Then why doesnt my script work?
|
Quote:
|
| All times are GMT +2. The time now is 06:13 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.