Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   Scripting Commands (https://forums.graalonline.com/forums/showthread.php?t=47993)

Chrisz 09-15-2003 08:17 PM

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? :D

[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]

Kaimetsu 09-15-2003 09:08 PM

What's the point?

Chrisz 09-15-2003 09:35 PM

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.

Kaimetsu 09-15-2003 09:50 PM

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.

Chrisz 09-15-2003 10:16 PM

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. :)

Riot-Starter 09-15-2003 11:42 PM

Im pretty shure this will be totaly doable without adding any new commands considering the playerlist is supposed to be an NPC now.

adam 09-16-2003 02:25 AM

Scriptable. :)


Well, I guess it would be overkill to script a new messening system for it though.

Chrisz 09-16-2003 06:32 PM

Yes but, v3 is taking too long, Stefan is working on 3.1+ now.. like wt..? :( heh.

Python523 09-17-2003 12:00 AM

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 :(

adam 09-17-2003 12:14 AM

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.

Loriel 09-17-2003 01:03 AM

Quote:

Originally posted by Python523
They do have a point, though.


All times are GMT +2. The time now is 01:36 AM.

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