Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-12-2002, 05:13 PM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Pause>.

Hey i was thinking is there a way to pause the player with a command of some sort?
I know disablepause...etc but how do u make it so the player is paused >.
Can some 1 help thanks
(Ive asked some NAT's like unholy paladin and he says he dosnt know if there is a way)
__________________
V$:CONFL16T
Reply With Quote
  #2  
Old 09-12-2002, 09:16 PM
Timpan3 Timpan3 is offline
Registered User
Timpan3's Avatar
Join Date: Apr 2002
Location: Stockholm, Sweden.
Posts: 969
Timpan3 is on a distinguished road
Send a message via AIM to Timpan3
Maybe they could make a sticky thread where you post suggestions for new scripts and Stefan would look it over, and maybe even consider some scripts that he thinks would be usefull for new servers..
__________________

Rate Fairly :O
1 2 3 4 5
- AIM : HoOLiGaN4LyFe
- Email : [email protected]
- Nick : Kosma
- Server : Classic/Frolic
- Current Jobs : Malhangaia LAT
Reply With Quote
  #3  
Old 09-13-2002, 12:48 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
If (playerpaused) CHECKS to see if the player is paused. I myself was experimenting w/ some sort of way to replace the default pause. How would you emulate it? You can make the x and y reset while paused every 0.1 so it doesn’t appear to be paused, and you can have it set the player’s hearts to the same, BUT what if the player is attacked, it’ll reset the hearts, but if their hearts are 0.5 then they get hit, it’ll just kill them instead. And if you set it to variables then they can just reconnect and have full health and/or ap and what not… so it can be abused… any suggestions? I don’t want to use strings for a few reasons:
1) They create more lag and get annoying with excessive usage, especially when using RC to scroll through them
2) You cannot call them and set them quickly because it doesn’t immediately set them… any ideas?
Plus, I want the end, how can you close Graal automatically, he he. Can you make it emulate Ctrl+Q being pressed? Then it would say “Are you sure you want to quit Graal?”.
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #4  
Old 09-13-2002, 10:53 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
I figured as much, heh. I actually am doing a custom HP system. I put in if (actionhurt && !playerpaused) that way it will check to see if they're paused... but what about setting playerpaused, just set playerpaused; doesn't give the right effect =/
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #5  
Old 09-14-2002, 02:11 AM
WanDaMan WanDaMan is offline
Master Tux
WanDaMan's Avatar
Join Date: Aug 2002
Location: England, United Kingdom
Posts: 5,571
WanDaMan is a jewel in the roughWanDaMan is a jewel in the rough
Send a message via MSN to WanDaMan
Red face

I wish there was
__________________
V$:CONFL16T
Reply With Quote
  #6  
Old 09-14-2002, 11:13 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Hmm... I am working on my HP System, but I'm starting to feel like Kai: give it away once you're done x.X I will first put it on Rudora (Scripting for them to come back :P) but I think after it's 100% finished and cool I'll spice it up, optimize it and submit it. It isn't that hard, just keeping track of hp and fullhp. I use client.hp as the HP and client.fullhp for full HP. And I have it do a triggeraction using vectors of playerdir*2 and what not, and have it int(random(#s(client.mindam),#s(client.maxdam))) So it isn't a set limit, and so you can have technically different swords
---Shifter


[edit] If there is a REQUEST for the HP System then I'll put it up [/edit]
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #7  
Old 09-14-2002, 11:20 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
if rudora will have an npc server when it gets back, use clientr strings for HP, much more secure
__________________
GONE, BAI
Reply With Quote
  #8  
Old 09-14-2002, 11:27 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
LOL, Jagen, perhaps I'll PM you some stuff, but yes, I am 100% sure (that means I KNOW it as a fact) that it will have an NPC Server... lemme PM you what's going on, it's *hush hush* though. Why would they be more secure exactly? I will, just curious, I use to use them instead of client.strings, but got lazy and switched back :P
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #9  
Old 09-14-2002, 11:33 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
clientr can only be modified by the server, so unless you hack the npc server and trick it to modify somebodys clientr strings, they cant be edited (well, that is assuming the world is perfect and noone is curropt)
__________________
GONE, BAI
Reply With Quote
  #10  
Old 09-15-2002, 12:47 AM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
Heh, point taken Jagen
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #11  
Old 09-23-2002, 09:50 AM
Dach Dach is offline
call me Chad, it's cooler
Dach's Avatar
Join Date: Aug 2002
Posts: 1,899
Dach is on a distinguished road
Quote:
Originally posted by Kamaeru
omg you press P TO PAUSE lol j/k im just posting this to get more posts k?
Circumstances for ban, no?

Someone once said to do a say2 Paused; type thing. Which would work just fine for many things.
__________________
Scripting Documents:Old Script Documentation-Movement Tutorial
Reply With Quote
  #12  
Old 09-23-2002, 11:03 AM
VampiricTutorNewHD VampiricTutorNewHD is offline
Banned
VampiricTutorNewHD's Avatar
Join Date: Jun 2002
Location: PEI, Canada
Posts: 712
VampiricTutorNewHD is on a distinguished road
Send a message via AIM to VampiricTutorNewHD
You do raise a valid point, just keep bombarding them with say2s untill further notice.
Reply With Quote
  #13  
Old 09-23-2002, 04:32 PM
R0b1n-NPC R0b1n-NPC is offline
Registered User
Join Date: Sep 2002
Posts: 397
R0b1n-NPC is on a distinguished road
if (playerendsreading&&client.paused==true) {
say2 Paused;
}
__________________
- R0bin
Reply With Quote
  #14  
Old 09-23-2002, 06:53 PM
emortylone emortylone is offline
Registered User
Join Date: Apr 2002
Location: Control-NPC
Posts: 834
emortylone is on a distinguished road
I dunno... say2 paused kind of defeats the whole purpose for what I wanted. REDESIGNING the pause menu... not just putting up (Paused) he he. Then what are you going to do as far as the (paused) goes. wait, lol, if you do say2 it'll do it, it would only work if your paused menu was BIGGER than the region of say2, and any button would exit it unless you have it loop someway.
---Shifter
__________________
Quote:
*Stefan: it seems sometimes they hire newbie scripters everywhere x-x
*Stefan: scripters are sometimes like people that draw paintings
*Stefan: all that counts is that it looks nice
Reply With Quote
  #15  
Old 09-23-2002, 09:49 PM
VampiricTutorNewHD VampiricTutorNewHD is offline
Banned
VampiricTutorNewHD's Avatar
Join Date: Jun 2002
Location: PEI, Canada
Posts: 712
VampiricTutorNewHD is on a distinguished road
Send a message via AIM to VampiricTutorNewHD
If you wanted to make it so they weren't getting hurt, just put their hearts in a flag. Make it constant that their hearts stay the same untill the paused flag is unset.
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 05:54 PM.


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