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 10-01-2002, 03:50 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
Quote:
Originally posted by emortylone

Sorry Cheetos, but there's two ways to do this...
NPC Code:

if (actionserverside)
{ with (getplayer(#p(0)))
{ sendpm #p(1);}
}


That sends it via triggeraction, #p(0) = acc, #p(1) = message
NPC Code:

if (actionserverside)
{ for (i=0;i<allplayerscount;i++)
{ with (allplayers[i])
{ if (strequals(#a,#p(0)))
{ sendpm #p(1);}
}
}
}


Does the same thing, but in a different way.
---Shifter
THINK -> POST
he's talking about having an account send the pm, using sendpm has the npc server send the pm, he wants it to look like a person is sending it, not the npc server
__________________
GONE, BAI
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 09:06 AM.


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