Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-05-2004, 04:32 AM
Zickle Zickle is offline
Awesome
Zickle's Avatar
Join Date: Dec 2002
Posts: 121
Zickle is on a distinguished road
Send a message via ICQ to Zickle Send a message via AIM to Zickle Send a message via MSN to Zickle Send a message via Yahoo to Zickle
Red face Making Server Flags

I want to make a script where when the player says "/eventpost TEXT" the text gets turned into a server flag like "server.bwpost=TEXT" and then the #s part of the code shown below in the playerenters and visible part display the text.

I had a good working way but I found out it needed server flags for everyone else to see it.

NPC Code:
// NPC made by ZicklePop
//#CLIENTSIDE
if (playerenters) {
showtext txt,x,y,verdana,nc,#s(server.bwpost);
changeimgcolors txt,1,1,1,1;
changeimgzoom txt,.5;
}
//#CLIENTSIDE
while (visible) {
showtext txt,x,y,verdana,nc,#s(server.bwpost);
changeimgcolors txt,1,1,1,1;
changeimgzoom txt,.5;
sleep 1;
}
//#CLIENTSIDE
if (playerchats) {
tokenize #c;
if (strequals(#t(0),/eventpost)) {
triggeraction 0,0,serverside,eventpost,/eventpost,#v(strtofloat(#s(server.bwpost));
}
}



Any help please?

Thanks as always, ZicklePop
__________________
Reply With Quote
 


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:24 AM.


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