Jump to content
  • 0

How to disable "Dispell" on WoE portals?


Orgasmator

Question


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   0
  • Joined:  06/17/12
  • Last Seen:  

Hi again,

First, I don't know if it's a script problem or a source problem but it seemed like source problem to me. If I'm wrong, please move this topic.

Today, I realized my players are getting dispelled when they enter to a portal in "prtg_cas01" Kriemhild castle.

I'm using Toasty's WoE controller. I've searched for "sc_end, sc_all, sc_, dispell" terms in Toasty's WoE controller script but couldnt find any. So I think it's not from that script?

I've searched the same terms in "agit_main" script and "prtg_cas01" script also​ but I couldn't find it in that files also.

Can anyone kindly tell me how to disable Dispell skill? If it is in a src file, I don't know which file to edit, so I didn't want to mess up any source files for safety. 

If anyone can teach me how to dispell specific skills, if possible, it would be much appreciated also.

Thanks in advance!

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  815
  • Reputation:   86
  • Joined:  10/26/12
  • Last Seen:  

function    dispell    {

for( .@i = 0; .@i < 308; .@i++ )
    if( (.@i != 53) && (.@i != 54) && (.@i != 249) && (.@i != 103)  ) //Do not dispell SC_WEIGHT50, SC_WEIGHT90, SC_JAILED, SC_NOCHAT
         sc_end .@i;
return;
}

 

Add it in your woe script.

 

Correct me if im wrong

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   0
  • Joined:  06/17/12
  • Last Seen:  

function    dispell    {

for( .@i = 0; .@i < 308; .@i++ )
    if( (.@i != 53) && (.@i != 54) && (.@i != 249) && (.@i != 103)  ) //Do not dispell SC_WEIGHT50, SC_WEIGHT90, SC_JAILED, SC_NOCHAT
         sc_end .@i;
return;
}

 

Add it in your woe script.

 

Correct me if im wrong

Thank you for your quick support Mootie.

Err, Should I put it in my woe_controller or agit_main? My WoE is running by Toasty's script at the moment. I replaced her script with official woe_controller script. 

And also, do I need to have any script that triggers this function, or is it running automatically?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  815
  • Reputation:   86
  • Joined:  10/26/12
  • Last Seen:  

callfunc("dispell");

 

put that in woe_controller.txt and make another script that calls the function of dispell

 

 

function    script    dispell    {
    while ( .@STATUS < 297 ) {
        if (
            .@STATUS != SC_WEIGHT50 &&
            .@STATUS != SC_WEIGHT90 &&
            .@STATUS != SC_NOCHAT &&
            .@STATUS != SC_XMAS &&
            .@STATUS != SC_SUMMER &&
            .@STATUS != SC_JAILED
        )
            sc_end .@STATUS;
        set .@STATUS, .@STATUS+1;
    }
    return;
}
 

check this part

 

 

//prontera,156,196,6    duplicate(WoE Info)    WoE Info#2winfo    837

//---------------------------------------------------------------------------------------------------------------------


function    script    WoEToggler    { //<state> = 0|1
    if(getarg(0)) {
        AgitStart;    
    } else {
        AgitEnd;
    }

 function    dispell    {

for( .@i = 0; .@i < 308; .@i++ )
    if( (.@i != 53) && (.@i != 54) && (.@i != 249) && (.@i != 103)  ) //Do not dispell SC_WEIGHT50, SC_WEIGHT90, SC_JAILED, SC_NOCHAT
         sc_end .@i;
    return;
}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   0
  • Joined:  06/17/12
  • Last Seen:  

So my agit_controller (sorry i said woe_controller earlier, I was mistaken, it's agit controller) is now like this:

 

function<tab>script<tab>WoEToggler<tab>{ //<state> = 0|1
	if(getarg(0)) {
		AgitStart;	
	} else {
		AgitEnd;
	}

<tab>function<tab>dispell<tab>{  //is it okay if i delete the first tab here?

for( .@i = 0; .@i < 308; .@i++ )
    if( (.@i != 53) && (.@i != 54) && (.@i != 249) && (.@i != 103)  ) //Do not dispell SC_WEIGHT50, SC_WEIGHT90, SC_JAILED, SC_NOCHAT
         sc_end .@i;
    return;
}

 

And I made a new script file that looks like this:
 

callfunc("dispell");

 

Should I use "end;" or "close;" after that callfunc script or is it fine like this?

Sorry if I'm bothering you too much. I'm just into learning so much..

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
Answer this question...

×   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...