Aaeru
-
Content Count
3 -
Joined
-
Last visited
Posts posted by Aaeru
-
-
Hello dear community,
I was wondering if someone could aid me with a issue I've been trying to figure out. On a server I work for, we try to host a novice-only event. Only level 1/1 novices may join and they can only bring the default novice equipment that can be purchased in one of the NPCs.
I know how to do the level/job check, so where I get stuck is, how do I put a check in the entrance NPC that doesn't allow a character to pass with any item (other than the default novice equips)? This is as far as I got... it probably makes no sense at all.
Thank you!
Note: In the following script, the IDs stated should be the ALLOWED ones.
getinventorylist; for(set .@i,0; .@i < getarraysize(@inventorylist_id); .@i++){ if(@inventorylist_id[.@i] != 2510 && @inventorylist_id[.@i] != 2340 && @inventorylist_id[.@i] != 5055 && @inventorylist_id[.@i] != 2112 && @inventorylist_id[.@i] != 1243 && @inventorylist_id[.@i] != 2414 && @inventorylist_id[.@i] != 2352){ mes .npc$; mes "I'm sorry, you're not allowed to carry/wear any items other than the Novice NPC Gear."; close; } }
Problem with next and previous page.
in Script Support
Posted
Hi Hercules!
I'm using a nice script that trades costumes for costumes. But I'm having a problem with the next and previous page options.
This is what's buggy:
- If I click previous page in the menu, it does next page instead.
- If I click previous page on the LAST page (when there are no further items to show), it closes the window.
Can you please help me fix it? And if its not too much to ask, tell me which lines should be changed please? I don't want to replace the whole script because it's part of something bigger (for which I need my local (unchanged) text file for it to be functional). I would like to make line adjustments 1 by 1, please? I learn more that way.
Thanks so much! Forever grateful! ^^