Does the items strip if u firstly enter the map?
@DEsMOnI've created another version with npc timer instead of OnLoadMapEvent and while loop.
weaponaccesspvp fixed.txt
Rynbef~
@DEsMOnidk why u don't use the simplest way. U wanna unequip every equipment. Just use the *nude script command.
weaponaccesspvp.txt
Just to say:
U use a lot of unused statements. U try to read the 2nd index (3rd entrie) of the array at OnPCKillEvent but the map array starts with index 0 and only two added.
U don't need to use a switch(select()) for only one entrie. U can shorter it by if(select()) and no need of.case.
If u only have one case u don't need break. Break is for skipping the other cases and jump after the switch statement.
The script could be much shorter and easier to read.
@DEsMOnI've restructure, rewritten and fixed the script completely. This was a bit confused. The error could prompt cause u forgotten () or doubled semicolon.
Please try to compare the scripts to learn.
//not tested
weaponaccesspvp fixed.txt
Rynbef~
@DEsMOnMaybe remove all start items from the char config and at https://github.com/rathena/rathena/blob/master/src/char/char.hpp#L21 set to 0. U can give items by script if u want.
Of course u need to recompile.
I've scripted a npc for getting start items by script on first login. Maybe u wanna use it.
//Not tested
Start_items.txt
Rynbef~
Try:
screen -dmS login ./login-server && screen -dmS char ./char-server && screen -dmS map ./map-server
The screens will run detached. U can attach like on previous posts already said.
Rynbef~
@achreshiaThe only way which comes in my mind was to create a Warper npc for PvP or do an OnLoadMapEvent. Which I've scripted for u. I hope I can help u a lot.
PVPNoSameClassInParty.txt
//Not tested
Rynbef~
The easiest way is to install "screen" and run the server by:
screen -S rathena ./athena-start start
With: screen -R rathena u can attach the screen. U can detach with CTRL+A+D as @Royralready said.
U can ofcourse use mtputty to create tabs for each screen. See example in previous post.
Rynbef~
@GM WinterPlease read the initialized variables of a npc. Mostly u can find it at the label OnInit. Just a suggestion ?
At top u can find the settings. Firt number is Base Level and the secound one the Job Level.
// Level Requirements
setarray .Req_First[0],1,10; // Minimum base level, job level to turn into 1st class
setarray .Req_Second[0],1,40; // Minimum base level, job level to turn into 2nd class
Rynbef~
I've added a Back Menu to all Maps. If there is a dungeon u can go back to main menu. If u select a dungeon as ex. amatsu dungeon it will show ama_dun01 etc and u can go back to dungeons. Sometimes there are fields like mjolnir which don't contains (fild) then u can go back to main menu. Cuz I use compare to differences between fild and dun.
//not tested
Warper changed.txt
Rynbef~
@Styx15U can use this:
OnPCLogoutEvent:
sc_end SC_GEFFEN_MAGIC3;
If u want to debuff if the player warps out from a specified map u can set the loadevent mapflag and create a script with the label OnPCLoadMapEvent. It will triggerd if the player warp to or out of the map.
Rynbef~
@KaAlfredPriWhat does ur login server say?
We need more information. Please attach ur clientinfo.xml.
Check the server configuration maybe the port is blocked. U can try to ping the server ip and port (https://ping.eu)
U can record the outgoing packets to check on which ip the client sends the packets so u can easy find out if your clientinfo.xml is load or overwritten by other etc
Rynbef~
U could do it like the lhz dungeon warps.
https://github.com/rathena/rathena/blob/master/npc/warps/dungeons/lhz_dun.txt
lhz_cube,59,136,0 script cubew02-3 45,1,1,{
callfunc "randomw";
end;
}
Rynbef~
If u want that the character can't repeat the quest to need a Variable like CocoQuest to 1 after getting Exp.
At the begin of the script u add an if-statement and continue if the Variable CocoQuest != 1 is.
If u want it to be account Bounded u need a # before. Ex. #CocoQuest
Rynbef~
@Dolphin86After give the items, Exp or zeny u need to erase the quest and/or set variables to 0. The player is able to repeat the quest afterwards.
Rynbef~
I don't know if there is a way to give the skill a cooldown on example on PvP maps.
Ive realised it by the following script.
CoolDownChangeOnPVPMaps.txt
My suggestion is to create a database like the damage adjust.
The file could be like this one.
Suggestion - Skill Cooldown.txt
What do u think about?
Rynbef~