Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-04-2012, 06:13 PM
Emera Emera is offline
Delterian Hybrid
Emera's Avatar
Join Date: Mar 2011
Location: Newcastle Upon-Tyne
Posts: 1,704
Emera is a jewel in the roughEmera is a jewel in the rough
An alternative to a drag tool.

I couldn't post the PHP code since incapsula kept blocking me >:(
The other day I was mucking around with Callimuc, Crow and Theo on Atlantis and Crow gave me a wonderful idea from using one of his staff tools. He had a mouse warp that could warp other players to a position in a level rather than having a fancy drag tool that, lets face it, just screams "Abuse me!". I decided to code my own since I thought it was a great alternative to a drag tool that could do the same job twice as quick and didn't need all the fancy tweaking to make a smooth drag effect. It seems like a useful tool so I thought I might post it. Criticism is welcome ^_^

Basically, it allows you to warp other players (and yourself) around the level. It doesn't need anything fancy and simply warps them to where you click your mouse. To turn the selection tool on/off hit the SHIFT key. When it's on click on a player to select one and click on the part of the screen you wish to warp them. I then deselects the player after warping since I don't see any reason why you would want to continuously warp a player around the level.

The extra GUI code is a simple little window to show if a player has been selected or not. It's not vital you have this and chat alerts work just as well.

__________________

Last edited by Emera; 01-04-2012 at 06:27 PM.. Reason: Using booleans :3
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:21 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.