Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-24-2011, 04:25 AM
Astram Astram is offline
Era iPhone PR
Astram's Avatar
Join Date: Aug 2010
Posts: 324
Astram can only hope to improve
Send a message via AIM to Astram
Very very simple clickwarp

PHP Code:
//#CLIENTSIDE
function onMouseDown(var)
{
if (var == 
"double")
{
player.mousex;
player.mousey;
}

Good for staff who dont deserve boots... Events Team etc.
__________________
-Toad
The worlds biggest Toad fan...
Era iPhone FTW!


Reply With Quote
  #2  
Old 02-24-2011, 04:30 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
You should avoid using var as a variable name. There are some strange issues with it in some contexts that make it worth avoiding in all instances.
__________________
Reply With Quote
  #3  
Old 02-24-2011, 06:08 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Also style/indent your scripts properly.
__________________
Quote:
Reply With Quote
  #4  
Old 02-24-2011, 11:50 AM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by Astram View Post
Good for staff who dont deserve boots... Events Team etc.
Who'd "deserve" boots anyway? They are in no way superior to click warp. More like the other way around.
Reply With Quote
  #5  
Old 02-24-2011, 11:56 AM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
Quote:
Originally Posted by Crow View Post
Who'd "deserve" boots anyway? They are in no way superior to click warp. More like the other way around.
This 100%.

It's like I believe, Dev staff only need three things in common powers wise.

warpto(player and x/y), click warp and RC
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #6  
Old 02-24-2011, 01:48 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Fulg0reSama View Post
This 100%.

It's like I believe, Dev staff only need three things in common powers wise.

warpto(player and x/y), click warp and RC
That's not at all true.

Scripters need the ability to summon players, the ability to spawn items (if you have an item-based server), the ability to host events in order to test them (if you have an event-based server), etc.

Granted, they don't need a hat setter and a lot of the stuff they get, but not giving scripters the rights they need just leads to them remaking them, which only leads to problems. If a scripter is going to abuse, you want them to abuse with the actual staff tools, not ones that they make.
__________________
Reply With Quote
  #7  
Old 02-24-2011, 01:57 PM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
Quote:
Originally Posted by cbk1994 View Post
That's not at all true.

Scripters need the ability to summon players, the ability to spawn items (if you have an item-based server), the ability to host events in order to test them (if you have an event-based server), etc.

Granted, they don't need a hat setter and a lot of the stuff they get, but not giving scripters the rights they need just leads to them remaking them, which only leads to problems. If a scripter is going to abuse, you want them to abuse with the actual staff tools, not ones that they make.
You took my context wrong, Three basic powers all dev staff need in common, Meaning that are miscellaneous as far as staff rights go, No duh that scripters need things like NC or GFX need the ability to upload their specific graphics. (btw I meant powers/rights from earlier post)
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #8  
Old 02-24-2011, 02:01 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Fulg0reSama View Post
You took my context wrong, Three basic powers all dev staff need in common, Meaning that are miscellaneous as far as staff rights go, No duh that scripters need things like NC or GFX need the ability to upload their specific graphics.
Why exactly do graphic artists need click-warp?
__________________

Last edited by cbk1994; 02-24-2011 at 02:01 PM.. Reason: the devil
Reply With Quote
  #9  
Old 02-24-2011, 02:09 PM
Clockwork Clockwork is offline
ᶘ ᵒᴥᵒᶅ...ᶘ ಠᴥಠᶅ❤...ℳℴℯ
Clockwork's Avatar
Join Date: Feb 2007
Location: Pennsylvania
Posts: 2,071
Clockwork has a brilliant futureClockwork has a brilliant futureClockwork has a brilliant futureClockwork has a brilliant futureClockwork has a brilliant futureClockwork has a brilliant futureClockwork has a brilliant futureClockwork has a brilliant future
Quote:
Originally Posted by cbk1994 View Post
Why exactly do graphic artists need click-warp?
Why does anyone need click warp with the right to warpto? :3
__________________
Reply With Quote
  #10  
Old 02-24-2011, 03:09 PM
nullify nullify is offline
Registerd Abuser
nullify's Avatar
Join Date: May 2004
Location: The cheese state.
Posts: 851
nullify has a spectacular aura about
lol guys watch me warp around hehehehe
Reply With Quote
  #11  
Old 02-24-2011, 03:16 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
im a scripter i need to spawn myself items )
__________________
Reply With Quote
  #12  
Old 02-24-2011, 05:45 PM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
Quote:
Originally Posted by cbk1994 View Post
Why exactly do graphic artists need click-warp?
same reason any other staff with any warping abilities at all; to keep up? It's probably the only luxury right I find to be okay enough to be used by anyone; it's not going to be abused if controlled properly.
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #13  
Old 02-24-2011, 10:56 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Fulg0reSama View Post
same reason any other staff with any warping abilities at all; to keep up? It's probably the only luxury right I find to be okay enough to be used by anyone; it's not going to be abused if controlled properly.
I agree that graphic artists should have click warp, I'm just trying to figure out why you hate staff boots and love click warp enough to say that it's one of the few rights every staff member should have
__________________
Reply With Quote
  #14  
Old 02-25-2011, 09:17 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by cbk1994 View Post
You should avoid using var as a variable name. There are some strange issues with it in some contexts that make it worth avoiding in all instances.
There was some strange issues with it. That was fixed back in 08, so no need to avoid using 'var'.


Quote:
Originally Posted by Stefan View Post
Ok the npcserver has been updated, you can now use "var" as function parameter and variable name again. The built-in values "NULL", "true", "false" and "pi" also work as function parameter names again instead of displaying an error.
__________________
Reply With Quote
  #15  
Old 02-25-2011, 09:37 AM
MysticX2X MysticX2X is offline
Prince
MysticX2X's Avatar
Join Date: Sep 2005
Posts: 2,529
MysticX2X will become famous soon enough
They need warp rights because there is like zero benefits for working on a graal server. You're going to need something to abuse.
__________________
-Mystic

former acc: mystic2k


RIP Matt (NBK)
Reply With Quote
  #16  
Old 02-25-2011, 12:02 PM
Fulg0reSama Fulg0reSama is offline
Extrinsical Anomaly
Fulg0reSama's Avatar
Join Date: Sep 2009
Location: Ohio
Posts: 3,049
Fulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant futureFulg0reSama has a brilliant future
Quote:
Originally Posted by cbk1994 View Post
I agree that graphic artists should have click warp, I'm just trying to figure out why you hate staff boots and love click warp enough to say that it's one of the few rights every staff member should have
Click warp gets you from Point A to B, Development have to be able to see and that is all they need. Boots are A to B just like click warp but the difference is that it can be flicked on and forgotten to be turned off; you use click warp and you are where you want to be, with boots it's showing off and is unnecessary on the job.
__________________

Careful, thoughts and opinions here scare people.
Reply With Quote
  #17  
Old 02-25-2011, 01:56 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Chompy View Post
There was some strange issues with it. That was fixed back in 08, so no need to avoid using 'var'.
Never saw that, thanks for the update .
__________________
Reply With Quote
Reply


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 07:13 PM.


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