![]() |
#l, #f ????
Ok clientside
if(strcontains(#L,.nw)) Serverside if(strcontains(#F,.nw)) Both dont work ...... |
Strcontains can be a bit finnicky sometimes. Use an indexof.
|
SO just indexof(#F.nw)
|
Quote:
judging from this it should be. "if (indexof(.nw,#L) != -1)message It is in the string.;" But this is graal so try, try, and try again. "strcontains( str, partstr ) str contains partstr" judging from this your previous scripts should have worked fine.... But this is graal? from commands.rtf |
Quote:
|
Quote:
|
Quote:
PS suggested if (playerenters){ this.len = strlen(#F); setstring this.level,#e(this.len-3,this.len,#F); if (strequals(#s(this.level),.graal)){ graal(); } if (strequals(#s(this.level),.nw)){ nw(); } } function graal(){ } function nw(){ } but this dont work |
It's:
if (strcontains(partstr,str)) { //Stuff } |
you want to check for the level extention?
i=indexof(.,#L); setstring this.levelextention,#e(i,-1,#L); i believe |
...dude...
NPC Code: I belive #L is for player level, and #F is for the NPC's level. |
NvM i got it to work the problem issss finding out where to put in. In the weapon it dont work, in the control NPC it dont work it only works in if the npc is in the level it dont work for all levels .
ex i warpto 30 30 bob.graal (where the NPC is ) and it works i reset the flags and warpto 30 30 bob2.graal and it dont work. Any ideas???? |
Quote:
with(getplayer(Knuckles)) sendtorc #L; it would send the NPCs level to rc, but if I did with(getplayer(Knuckles)) sendtorc #F; it would send the level that the account knuckles is in to rc |
Ahh, I see..
|
I wonder what that original poster was trying to do.
|
Quote:
|
...We all interpret some things diffrently =o.
|
ITS MY B-DAY!!!!!
I am tring to get this to work EVERY time you enter a level. if (playerenters){ this.len = strlen(#F); setstring this.level,#e(this.len-3,this.len,#F); if (strequals(#s(this.level),aal)){ addweapon -GUI; removeweapon *GUI; } if (strequals(#s(this.level),.nw)){ addweapon *GUI; removeweapon -GUI; } } Right now its in the control NPC but it only works when i log on and off and i tried timeout loops in the System Weapon but it still doesnt work. Any Ideas? |
NVM i fixed it
if(created||timeout){ for(i=0;i<allplayerscount;i++) { with(allplayers[i]) { this.len = strlen(#F); setstring this.level,#e(this.len-3,this.len,#F); if (strequals(#s(this.level),aal)){ addweapon -GUI; removeweapon *GUI; } if (strequals(#s(this.level),.nw)){ addweapon *GUI; removeweapon -GUI; } } } timeout=1; } And i added it as an NPC then reset it and BAM it works |
use code brackets x.x and that's completelly useless, plus if the player is on a gmap his level shows up as the gmap's serverside, what's so different about the levels that you need to use two different GUIs?
|
Its for Bravo ....... we made 2 servers on 1. Gold and Classic.
|
Quote:
|
Quote:
|
The problem with many of you playerworld types is that you count your chickens before they hatch.
|
Quote:
|
Quote:
|
| All times are GMT +2. The time now is 12:43 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.