Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 09-15-2003, 08:17 PM
Chrisz Chrisz is offline
Registered User
Join Date: Oct 2002
Location: Lost...
Posts: 176
Chrisz is on a distinguished road
Send a message via AIM to Chrisz Send a message via Yahoo to Chrisz
Cool Scripting Commands

I think this will probably work its way into v3.1 someway or another without my interferance, but here goes ^_^.

NPC Code:

sendpm2 toacct,image,text;


Example of use:

NPC Code:

if (playerchats && startswith(tofriends:,#c)) {
sendpm2 #I(this.friends,0),chrisz_pmbubble.png,tofriends: Hi people.;
}



:] Yes the code has been cut, only sends to first acct in string, this.friends. I have no clue the size of the pm bubbles, but I guess it would be cropped if it was larger?? The 'toacct' parameter as you probably could guess, would send it to that account, if they were online. The 'image' parameter is obvious, its the pm bubble, and even more obvious is the 'text' parameter. Comments/Suggestions anyone?

[edit]
I just realized.. the 'image' parameter may be a little awkward.. so we could just use the pmbubbles already in sprites.png and make it like so...

NPC Code:

sendpm2 toacct,image,text;
//Image #'s
//0 - Yellow PM
//1 - Blue PM
//2 - White PM
//3 - Green PM
//4 - Red PM


I suppose the order of the numbers could be changed, but, thats my order :P
[/edit]
__________________
-Chrisz
Reply With Quote
  #2  
Old 09-15-2003, 09:08 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
What's the point?
__________________
Reply With Quote
  #3  
Old 09-15-2003, 09:35 PM
Chrisz Chrisz is offline
Registered User
Join Date: Oct 2002
Location: Lost...
Posts: 176
Chrisz is on a distinguished road
Send a message via AIM to Chrisz Send a message via Yahoo to Chrisz
Well, I tried to disguse the point.. but here goes.. toguild: is nice for guild tags, but I'm sure there are more than one guild that want to talk with each other, supplying your own command for this would be FAR better than the npc server sending out pms etc... toallies: text would send a guild message to YOU and your guilds 'friends' or 'allies'.. Very useful I say.
__________________
-Chrisz
Reply With Quote
  #4  
Old 09-15-2003, 09:50 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Could be confusing to some - what if Joe adds Jim to his allies just to send him spam in the form of guild messages? But there are ways to circumvent that.

If this system were to be implemented, it would obviously need to be serverside-only. I'm ambivalent.
__________________
Reply With Quote
  #5  
Old 09-15-2003, 10:16 PM
Chrisz Chrisz is offline
Registered User
Join Date: Oct 2002
Location: Lost...
Posts: 176
Chrisz is on a distinguished road
Send a message via AIM to Chrisz Send a message via Yahoo to Chrisz
Well of course serverside. If it t'was clientside all hell would break loose. Plus more obvious there would be general checks to prevent spam, good old timevar use and checking to see if both sides are allied.
__________________
-Chrisz
Reply With Quote
  #6  
Old 09-15-2003, 11:42 PM
Riot-Starter Riot-Starter is offline
Registered User
Join Date: Aug 2001
Location: Central Florida, USA
Posts: 79
Riot-Starter is on a distinguished road
Send a message via AIM to Riot-Starter
Im pretty shure this will be totaly doable without adding any new commands considering the playerlist is supposed to be an NPC now.
Reply With Quote
  #7  
Old 09-16-2003, 02:25 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Scriptable.


Well, I guess it would be overkill to script a new messening system for it though.
__________________
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
  #8  
Old 09-16-2003, 06:32 PM
Chrisz Chrisz is offline
Registered User
Join Date: Oct 2002
Location: Lost...
Posts: 176
Chrisz is on a distinguished road
Send a message via AIM to Chrisz Send a message via Yahoo to Chrisz
Yes but, v3 is taking too long, Stefan is working on 3.1+ now.. like wt..? heh.
__________________
-Chrisz
Reply With Quote
  #9  
Old 09-17-2003, 12:00 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Chrisz
Yes but, v3 is taking too long, Stefan is working on 3.1+ now.. like wt..? heh.
people complaining about the new engine not being released yet and v3 not 'public' (as in, non VIP) yet is just as annoying as the people complaining about the guildCP
Reply With Quote
  #10  
Old 09-17-2003, 12:14 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
V3 as it is now isn't worth using I wouldn't say.


I hope all that playerlist stuff and windows are all rescriptable. Becouse I hate the playerlist in V3 now.

I want to rescript it badly.
__________________
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
  #11  
Old 09-17-2003, 01:03 AM
Loriel Loriel is offline
Somewhat rusty
Loriel's Avatar
Join Date: Mar 2001
Posts: 5,059
Loriel is a name known to allLoriel is a name known to allLoriel is a name known to allLoriel is a name known to all
Quote:
Originally posted by Python523
They do have a point, though.
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 08:03 PM.


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