View Single Post
  #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