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 11-14-2001, 11:23 AM
fireball_dolphonia fireball_dolphonia is offline
Registered User
Join Date: Sep 2001
Location: Graalistan
Posts: 73
fireball_dolphonia is on a distinguished road
Question String Help!

ok i need help on how to make it if you say show lemons it shows homany lemons u got
__________________

ages.ccs.com/ccsimages/cat_
Reply With Quote
  #2  
Old 11-14-2001, 07:54 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
if the string is called lemons for example

if(playerchats && strequals(#c,lemons)){
say2 You got #s(lemons) Lemons;
}
__________________
No Webhost at the moment
Reply With Quote
  #3  
Old 11-14-2001, 08:49 PM
TDK_Admin1 TDK_Admin1 is offline
Registered User
Join Date: Nov 2001
Location: Northern Harkoonia
Posts: 33
TDK_Admin1 is on a distinguished road
Yup =) Not that hard.
__________________
-Shard IceFire-
Reply With Quote
  #4  
Old 11-14-2001, 11:57 PM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Red face ummmmm....

I think you should keep it organized...
NPC Code:

if (playerchats) {
if (strequals(#c,Show Lemons)) setplayerprop #c,#s(client.lemons);
}


note the client.
--PastAustin
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #5  
Old 11-15-2001, 12:00 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Talking lol

I am a retard...but I like to keep client strings so that they have client before them it makes me happy. And I am NAT Chief on Doomsday....so listen to me! :-D. I am happy now that you all know that I am obsessive compulsive.
--PastAustin
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #6  
Old 11-15-2001, 12:01 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
hmm
NAT Chief that doesnt know how to use strings
odd
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #7  
Old 11-15-2001, 12:16 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
um... it has no use on non p2p PWs like Doomsday so this are useless bits
__________________
No Webhost at the moment
Reply With Quote
  #8  
Old 11-15-2001, 12:18 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
nvm my last post
it made no sense at all
i got everyone names mixed up completly
opps
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #9  
Old 11-15-2001, 12:21 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by AlexH
nvm my last post
it made no sense at all
i got everyone names mixed up completly
opps
Welcome in club
__________________
No Webhost at the moment
Reply With Quote
  #10  
Old 11-15-2001, 01:48 AM
Saga2001 Saga2001 is offline
Wishing he had 3 feet
Join Date: Aug 2001
Location: Basement
Posts: 1,565
Saga2001 is on a distinguished road
Send a message via ICQ to Saga2001 Send a message via AIM to Saga2001 Send a message via Yahoo to Saga2001
Talking Damn Skipy...

Me not able to use strings?
yeah right.
what do you want?
try me.
--PastAustin
__________________

!Wan ( 11:27:55 AM):
can i c ur scripts please?
Zorg (RC): If I hear NPC Server call Ne0, Past Austin or Brent sexy one more time im disconnecting it
Reply With Quote
  #11  
Old 11-15-2001, 01:50 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
i did say nvm my last post
i thought you started the thread
but i relized you didnt
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #12  
Old 11-15-2001, 03:20 AM
royce royce is offline
Banned
royce's Avatar
Join Date: Sep 2001
Location: Yakitinzen, China
Posts: 2,271
royce is on a distinguished road
Send a message via AIM to royce
Quote:
Originally posted by AlexH
i did say nvm my last post
i thought you started the thread
but i relized you didnt
lol i knew i saw a difference in sigs
Reply With Quote
  #13  
Old 11-15-2001, 06:18 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
Re: lol

Quote:
Originally posted by Saga2001
I am a retard...but I like to keep client strings so that they have client before them it makes me happy. And I am NAT Chief on Doomsday....so listen to me! :-D. I am happy now that you all know that I am obsessive compulsive.
--PastAustin
uhh, thats dumb ... didn't you just ask for the time script or something the other day?
Reply With Quote
  #14  
Old 11-15-2001, 10:25 AM
entravial entravial is offline
Registered User
entravial's Avatar
Join Date: Mar 2001
Posts: 825
entravial is on a distinguished road
Send a message via ICQ to entravial Send a message via AIM to entravial Send a message via Yahoo to entravial
~AlphaFlame~

If the string is a number... strtofloat(#s(stringname))...
If the string is a number and you're adding to it... setstring stringname,#v(strtofloat(#s(stringname))+1);....
Otherwise, #s(stringname) works... by the way, did any of you realize you can add to strings? :-P
setstring stringname,#s(stringname) newtext;... useful for a couple of things... like anti-curse systems that replaces the text...

And don't diss Saga. If he ever gets on a p2p server as a NAT, the habit of using client. will be useful....
__________________


If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
Reply With Quote
  #15  
Old 11-15-2001, 10:27 AM
Faheria_GP2 Faheria_GP2 is offline
Banned
Faheria_GP2's Avatar
Join Date: Oct 2001
Posts: 1,177
Faheria_GP2 is on a distinguished road
Saga uses the "icepick" method of scripting
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 04:53 PM.


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