Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-12-2001, 07:09 AM
Aknts Aknts is offline
Level Designer
Aknts's Avatar
Join Date: Apr 2001
Location: USofA
Posts: 3,340
Aknts will become famous soon enough
Send a message via AIM to Aknts
I need help on a sign.
I have a sign and if ur a certain staff member u can update what the sign says while online but when u talk and it adds it i need it so it goes to the next line without going off the sing thing like using #b kinda thanx
Reply With Quote
  #2  
Old 05-12-2001, 07:32 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Thumbs down grr

you didn't need to post it 2 times... that is just usless
__________________
Thanks,
-KJL
Reply With Quote
  #3  
Old 05-12-2001, 08:45 AM
WeirdmanI9 WeirdmanI9 is offline
Banned
WeirdmanI9's Avatar
Join Date: Mar 2001
Location: Laying Low From The Police
Posts: 1,816
WeirdmanI9 is on a distinguished road
Send a message via AIM to WeirdmanI9 Send a message via Yahoo to WeirdmanI9
NPC Code:
 if (strcontains(#g,Admin)) {
if (playerchats) {
if (playersays(update sign)) {
set signupdating;
}
}
}

if (playerchats && signupdating) {
setstring server.sign#,#c;
unset signupdating;
}



==Code For Sign==
NPC Code:
setgif sign.gif;
if (playertouchsme) {
say2 server.sign#;
}



I don't know about line breaks, though, when I test this it doesn't work for me, maybe it'll work if you have different lines as different strings.
Reply With Quote
  #4  
Old 05-12-2001, 09:02 AM
WeirdmanI9 WeirdmanI9 is offline
Banned
WeirdmanI9's Avatar
Join Date: Mar 2001
Location: Laying Low From The Police
Posts: 1,816
WeirdmanI9 is on a distinguished road
Send a message via AIM to WeirdmanI9 Send a message via Yahoo to WeirdmanI9
=======================================
The Script for server signs with different lines
=======================================

[B]
NPC Code:
 //Server Sigm
//Made By Shady
//A cool sign updating and news system that
//doesn't even require level updating
//Just add strings copied according to
//how many ligns you want for each sign
if (strcontains(#g,Admin)) {
if (playerchats) {
if (playersays(update sign)) {
set signupdatingline1;
}
}
}


if (playerchats && signupdatingline1) {
setstring server.sign1a,#c;
unset signupdatingline1;
set signupdatingline2;
}

if (playerchats && signupdatingline2) {
setstring server.sign1b.#c;
unset signupdatingline2;
}



==Code For Sign==
NPC Code:
setgif sign.gif;
if (playertouchsme) {
say2 server.sign1a #b server.sign1b;
}



I don't know about line breaks, though, when I test this it doesn't work for me, maybe it'll work if you have different lines as different strings.

Last edited by WeirdmanI9; 05-12-2001 at 09:06 AM..
Reply With Quote
  #5  
Old 05-13-2001, 10:58 PM
Aknts Aknts is offline
Level Designer
Aknts's Avatar
Join Date: Apr 2001
Location: USofA
Posts: 3,340
Aknts will become famous soon enough
Send a message via AIM to Aknts
Argg that dont work

That script doesnt work
__________________
Reply With Quote
  #6  
Old 05-14-2001, 04:19 PM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
u cant test it offline since it has server. vars
Reply With Quote
  #7  
Old 05-14-2001, 07:18 PM
Cloud_X Cloud_X is offline
Cloud_X's Avatar
Join Date: Mar 2001
Posts: 2,921
Cloud_X will become famous soon enough
errr it's rather large use like strcontains and stuff instead
__________________
Temporary blocked
Stefan Knorr
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 10:09 AM.


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