Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 12:00 AM.


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