Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
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 10-25-2005, 09:56 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
prob.

For some odd reason, no one but me can see this when I say something (this is for anouncing events, but no one but the speaker can see it. The weapon that triggers this is below the first script, the top one is the part that should display text, and allow warping, but it doesn't x_X This may seem repetitive, wasn't sure which parts would be better, its only at one part i think
NPC Code:
//#CLIENTSIDE
if(actionclientside){
if(strequals(#p(0),eventsmessage)){
play extra.wav;
sleep .05;
play extra.wav;
for(h=0;h<200;h++){
showtext 33433,10,430,Arial,b,#s(serverr.eventsmessage);
changeimgvis 33433,10;
timeout=.05;
if (timeout&&playerchats&&strequals(#c,/warp)){setlevel2 eventswarp_darkrival2.nw,30,35;}
sleep .05;}
hideimg 33433;
}
}


NPC Code:
if(actionserverside){
if(strequals(#p(0),call)){
setstring serverr.eventsmessage,#T(#e(8,-1,#c)) Say /warp to warp to this event!;
triggeraction 0,0,clientside,-eventsmessage,eventsmessage;
}
}
//#CLIENTSIDE
if(weaponfired){
say2 Say /message <message>#b
to send a message to all players#b
ex: /message Holding Event...Spar!#b
}
if(isweapon&&playerchats&&startswith(/message,#c)){
triggeraction 0,0,serverside,Events Team/Message,call;
triggeraction 0,0,clientside,-eventsmessage,eventsmessage;
}

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:40 PM.


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