Jump to content
Jezu

War of Emperium for Transcendent Jobs [v1.0]

Recommended Posts

// War of Emperium for Transcendent Only
// Created by Jezu of rAthena.org
// v1.0 - First Release
// Please do visit us on rAthena.org/board

Introduction:

This script is use if you have third-class server. The script will kick out all non-transcendent class or any 3rd jobs.

Description:

Allows you to start War of Emperium using Toasty's WOE Controller by setting up a map you want to use for your Transcendent Class only.

How to use:

1. Download the attachment below

2. Copy the text file on your npc/custom/

3. Go back to npc folder and find script_custom.conf

4. To activate the script, Add this line..

npc: npc/custom/transwoe.txt

5. Then restart your server or use @reloadscript

Remember:

• Any WOE Controller works on this script 100%

• The script is using OnPcLoadMapEvent so MAP that you setup will kick all non-transcendent jobs.

• You can add more maps just by following like this:

set .maps$[0],"aldeg_cas01";
set .maps$[1],"payg_cas01";
set .maps$[2],"gefg_cas02";

• Follow this format

set .maps$[3],"guildmap_name";

• Don't forget to find the lines on last part which is this line because this will load the event to kick non-transcendent jobs:

aldeg_cas01<tab>mapflag<tab>loadevent
payg_cas01<tab>mapflag<tab> loadevent
gefg_cas02<tab>mapflag<tab>loadevent

* This script will also kick and back to their SavePoint the players that has been warp by the use of Emergency Call with 3rd Class on their guild members.

* Even @warp with 3rd-Jobs cannot enter the set map, even by summon of Game Masters (Corruption).

Hope this will help you for your 3rd-class server. Thanks and More powers to RAthena!

Helpers:

Emistry

wakoko321

Jezu (me)

transwoe.txt

  • Upvote 2
Link to comment
Share on other sites

Have a minor optimisation.

http://pastebin.com/TUZBLnr0

The idea is you loop once when the script loads, instead of loop every time a player enters a map. Also sets up the loadevent mapflags dynamically so no need to set outside the script. =D

Link to comment
Share on other sites

where to put the mapflag code? on the transwoe.txt? it's not working on me? im using toasty and set payg_cas01 then i start it but my group_id 0 account 3rd job can go to the map. i don't change anything on the script.

Link to comment
Share on other sites

I tried to modify it by changing the 3rd job IDs to trans job IDs. Does anyone know what has to be the problem with this?

Here's the code:

// War of Emperium for Transcendent Only
// Created by Jezu of rAthena.org
// v1.0 - First Release
// Please do visit us on rAthena.org/board
- script TransWoE -1,{
   OnInit:
set .maps$[0],"gefg_cas04";
set .maps$[1],"gefg_cas01";

//setup flags for lookup later (.m_<map>)
set [email protected], getarraysize([email protected]$) - 1;
while([email protected] >= 0) {
 setmapflag getd(.maps$[[email protected]]), mf_loadevent;
 setd(".m_" + .maps$[[email protected]], 1);
 set [email protected], [email protected] - 1;
}
   end;

OnPCLoadMapEvent:
   if(getd(".m_" + strcharinfo(3))) { //checks if .m_<map> is set
    if(Class >= 4008 && Class <= 4011 || Class >= 4012 && Class <= 4022) {
announce "Transcendent Jobs are not allowed here!",bc_self|bc_yellow;
	    warp "SavePoint",0,0;
	    end;
    }
   }
}
//Mapflags
gefg_cas04 mapflag loadevent
gefg_cas01 mapflag loadevent

The above code is not working. It doesn't warp me back to the save point and also doesn't announce. Please help!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.