Help NEED HELP

P1anetEarth

Loyal Member
Loyal Member
Apr 10, 2018
123
31
45
I'm creating a Rebirthing System for so many levels but when i get to Level 300 it just doesn't work and anything for level 300+ doesnt work at all e.g.

[@test]
#IF
LEVEL >= 300
#ACT
GIVEITEM TownTeleport 1

Even this doesn't work at level 300 but when I change it for check Level 200+ it works perfectly fine.
 

Far

tsniffer
Staff member
Developer
May 19, 2003
20,172
30
2,767
540
Level npc command is probably a byte still. So max 255

You need to change it to an int in the code if that's the case.
 
  • Like
Reactions: LegendOfMirGods3
Upvote 0

Far

tsniffer
Staff member
Developer
May 19, 2003
20,172
30
2,767
540
Search for "level" with the quotes and you should find it.

Will prob be 2 places in that file which need changing.
 
Upvote 0

Far

tsniffer
Staff member
Developer
May 19, 2003
20,172
30
2,767
540
npcsegment.cs

1619099952944.png

change the byte to int, and tempByte to tempInt (should be a tempInt already)

will need changing in 2 places
 
  • Like
Reactions: LegendOfMirGods3
Upvote 0

P1anetEarth

Loyal Member
Loyal Member
Apr 10, 2018
123
31
45
switch (check.Type)
{
case CheckType.Level:
if (!int.TryParse(param[1], out tempInt))
{
failed = true;
break;
}

try

switch (check.Type)
{
case CheckType.Level:
if (!int.TryParse(param[1], out tempInt))
{
failed = true;
break;
}

try

Changed both of them and still not working
 
Upvote 0

Far

tsniffer
Staff member
Developer
May 19, 2003
20,172
30
2,767
540
no idea then sorry. Thats only thing you need to change
 
Upvote 0