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 11-25-2004, 06:06 PM
Crono1508 Crono1508 is offline
*Shadow (Convoy)
Crono1508's Avatar
Join Date: Jun 2004
Location: United States
Posts: 488
Crono1508 will become famous soon enough
Help Scripters!!!

Alright, I'm trying to create an easy flat out levels system off of a RC NPC.
Here is the Script I've made.

//#CLIENTSIDE
if (created){
setstring client.level,1;
}
if (playerkills==10){
setplayerprop#c,Gained Level!;
setstring client.level,#v(strtofloat(#s
(client.level))+1);
say2 You've gained a level!
#bCurrent Level: #s(client.level);
}
}

This doesn't work at all. Even if I always changed the if (playerkills==10){ part.
I've tried
if (playerkills=10){
if (playerkills==10){
if (playerkills<10){
if (playerkills>10){
if (created&&playerkills=10){
if (created&&playerkills==10){

None of it works.
So when I put
if (playerchats&&strequals(#c,/autolevel){
then the basic script, it did give me a level and it showed in my profile Level: 2

I got the profilevars=Level:=client.level

And it just doesn't work.
Am I using the wrong thing?
Like..
severr.flag
server.flag
this.flag
client.flag
clientr.flag

What do I use?
I need all your help out their. I just want it so if my kills are 10 I'll gain a level and it'll add +1 to my client.level!
__________________

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 04:16 PM.


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