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 07-23-2010, 02:08 AM
Kamakaze Kamakaze is offline
UN Levels Team Admin
Kamakaze's Avatar
Join Date: Sep 2008
Location: Virginia
Posts: 37
Kamakaze is on a distinguished road
Exclamation Script Help!

Hi, Wasn't quite to sure how to name this topic.
I have scripted a "ban" and "unban" script that I use on a restaurant on UN for "rowdy" kids. Thing is what I was to do is make it so when you "ban" someone it add their account to a GUI and when a person in a certain guild says "banlist" it opens a GUI box with the banned accouts/players from the restaurant. Also, when you "unban" a player/account it removes the account from the GUI so we know it is gone.

If anyone could help me on this, that would be fantastic!
Thanks,
Joker
Reply With Quote
  #2  
Old 07-23-2010, 02:24 AM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
If it is already scripted, what do you need help with?

Edit: Nevermind, I see your question now. The best GUI reference is http://wiki.graal.net/index.php/Crea...F_Object_Types under "GUIControl" in that big tree of objects. It shows you what each is and an example. I'm not sure if there is a full-blown tutorial for GUIs or not.
Reply With Quote
  #3  
Old 07-23-2010, 02:26 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
Just use the F2 window, it's better if you're not making a full GUI.

PHP Code:
function onPlayerChats() {
  if (
player.chat == "banlist") {
    
sendRPGMessage("<b>Banned players:</b>");
    for (
temp.acc this.banned) {
      
sendRPGMessage(acc);
    }
  }

__________________
Reply With Quote
  #4  
Old 07-23-2010, 02:27 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura about
Send a message via AIM to adam
As I recall, this can only be a level npc
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote
  #5  
Old 07-23-2010, 02:29 AM
Kamakaze Kamakaze is offline
UN Levels Team Admin
Kamakaze's Avatar
Join Date: Sep 2008
Location: Virginia
Posts: 37
Kamakaze is on a distinguished road
Quote:
Originally Posted by WhiteDragon View Post
If it is already scripted, what do you need help with?
The ban script is already made, what I needed help with is the script that opens a GUI and shows who is banned, and removes them when we unban them :P
Reply With Quote
  #6  
Old 07-23-2010, 02:39 AM
Kamakaze Kamakaze is offline
UN Levels Team Admin
Kamakaze's Avatar
Join Date: Sep 2008
Location: Virginia
Posts: 37
Kamakaze is on a distinguished road
Quote:
Originally Posted by cbk1994 View Post
Just use the F2 window, it's better if you're not making a full GUI.

PHP Code:
function onPlayerChats() {
  if (
player.chat == "banlist") {
    
sendRPGMessage("<b>Banned players:</b>");
    for (
temp.acc this.banned) {
      
sendRPGMessage(acc);
    }
  }

Ok, so I tried to add this, I guess I may have done something wrong, because it isn't showing the banned players
Reply With Quote
  #7  
Old 07-23-2010, 03:22 AM
Kamakaze Kamakaze is offline
UN Levels Team Admin
Kamakaze's Avatar
Join Date: Sep 2008
Location: Virginia
Posts: 37
Kamakaze is on a distinguished road
Thanks for everyone that helped, I got it now!!
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 02:44 PM.


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