Jump to content
  • 0

Disguise Event script edit


Question

Posted

Hello guys!

 

I got this Disguise Event NPC script from EA made by GmOcean. The script is working fine as well as all its features/settings but the problem is the script needs for the player to actually "shout" the answer aloud so the NPC can get it.

 

The problem is my current client version and langtype seems to have a problem recognizing shouts so the NPC itself cannot actually "hear" the players answers.

 

If maybe we could modify this script so that instead of having the players shout the answer, the player should click the NPC and an input box will appear wherein they would type in their answers. Anyone who clicks "ok" first with the correct answer is considered the winner by the NPC.

 

I cannot touch the NPC and I do not even know where to begin to have this input box option. Maybe the knowledgeable scripters here can extend some help. I can pay for the service.

 

Here is a copy of my script: http://pastebin.com/raw.php?i=CjafFkfr

 

Any help is greatly appreciated.

 

Thank you in advance guys! :)

 

 

7 answers to this question

Recommended Posts

Posted

Hello guys!

 

I got this Disguise Event NPC script from EA made by GmOcean. The script is working fine as well as all its features/settings but the problem is the script needs for the player to actually "shout" the answer aloud so the NPC can get it.

 

The problem is my current client version and langtype seems to have a problem recognizing shouts so the NPC itself cannot actually "hear" the players answers.

 

If maybe we could modify this script so that instead of having the players shout the answer, the player should click the NPC and an input box will appear wherein they would type in their answers. Anyone who clicks "ok" first with the correct answer is considered the winner by the NPC.

 

I cannot touch the NPC and I do not even know where to begin to have this input box option. Maybe the knowledgeable scripters here can extend some help. I can pay for the service.

 

Here is a copy of my script: http://pastebin.com/raw.php?i=CjafFkfr

 

Any help is greatly appreciated.

 

Thank you in advance guys! :)

 

Have you tried using the rA version?

https://github.com/rathena/rathena/blob/master/npc/custom/events/disguise.txt

Posted

 

Hello guys!

 

I got this Disguise Event NPC script from EA made by GmOcean. The script is working fine as well as all its features/settings but the problem is the script needs for the player to actually "shout" the answer aloud so the NPC can get it.

 

The problem is my current client version and langtype seems to have a problem recognizing shouts so the NPC itself cannot actually "hear" the players answers.

 

If maybe we could modify this script so that instead of having the players shout the answer, the player should click the NPC and an input box will appear wherein they would type in their answers. Anyone who clicks "ok" first with the correct answer is considered the winner by the NPC.

 

I cannot touch the NPC and I do not even know where to begin to have this input box option. Maybe the knowledgeable scripters here can extend some help. I can pay for the service.

 

Here is a copy of my script: http://pastebin.com/raw.php?i=CjafFkfr

 

Any help is greatly appreciated.

 

Thank you in advance guys! :)

 

Have you tried using the rA version?

https://github.com/rathena/rathena/blob/master/npc/custom/events/disguise.txt

 

 

 

Yes I tried it but it gives me errors because I am using 3ceam SRC.

[05:46:06][Error]:  Loading NPC file: npc/extras/disguise_event.txt
script error on npc/extras/disguise_event.txt line 61
    parse_callfunc: expected ')' to close argument list
    56 :                        case 1:
    57 :                                setarray .@r$[0],"Disguise as all monste
rs.","Disguise as MVPs only.";
    58 :                                mes .@n$;
    59 :                                mes "Choose a disguise rule.";
    60 :                                next;
*   61 :                                set .Rule, select(implode'('.@r$,":"));
    62 :                                mes .@n$;
    63 :                                mes "The Disguise Rule has been set:";
    64 :                                mes "  > ^0055FF"+.@r$[.Rule-1]+"^000000
";
    65 :                                close;
    66 :                        case 2:

I wanted to use my original script and just have an "input box" edit on it so it can be used for my Server.

 

Thank you.

Posted

 

 

Hello guys!

 

I got this Disguise Event NPC script from EA made by GmOcean. The script is working fine as well as all its features/settings but the problem is the script needs for the player to actually "shout" the answer aloud so the NPC can get it.

 

The problem is my current client version and langtype seems to have a problem recognizing shouts so the NPC itself cannot actually "hear" the players answers.

 

If maybe we could modify this script so that instead of having the players shout the answer, the player should click the NPC and an input box will appear wherein they would type in their answers. Anyone who clicks "ok" first with the correct answer is considered the winner by the NPC.

 

I cannot touch the NPC and I do not even know where to begin to have this input box option. Maybe the knowledgeable scripters here can extend some help. I can pay for the service.

 

Here is a copy of my script: http://pastebin.com/raw.php?i=CjafFkfr

 

Any help is greatly appreciated.

 

Thank you in advance guys! :)

 

Have you tried using the rA version?

https://github.com/rathena/rathena/blob/master/npc/custom/events/disguise.txt

 

 

 

Yes I tried it but it gives me errors because I am using 3ceam SRC.

[05:46:06][Error]:  Loading NPC file: npc/extras/disguise_event.txt
script error on npc/extras/disguise_event.txt line 61
    parse_callfunc: expected ')' to close argument list
    56 :                        case 1:
    57 :                                setarray .@r$[0],"Disguise as all monste
rs.","Disguise as MVPs only.";
    58 :                                mes .@n$;
    59 :                                mes "Choose a disguise rule.";
    60 :                                next;
*   61 :                                set .Rule, select(implode'('.@r$,":"));
    62 :                                mes .@n$;
    63 :                                mes "The Disguise Rule has been set:";
    64 :                                mes "  > ^0055FF"+.@r$[.Rule-1]+"^000000
";
    65 :                                close;
    66 :                        case 2:

I wanted to use my original script and just have an "input box" edit on it so it can be used for my Server.

 

Thank you.

 

Anyone? I can happily pay for  service. :D

Thanks!

Posted

The issue here, is that the rA version uses commands such as: implode & explode. Both of which are not apart of eA's standard revision.

 

Also, as for using input box and the like. It shouldn't be too hard to add into the script itself, as that is how I originally created the script to begin with. However due to popular opinion I re-wrote it to use REGEX allowing for " speach " to be recognized.

Posted

The issue here, is that the rA version uses commands such as: implode & explode. Both of which are not apart of eA's standard revision.

 

Also, as for using input box and the like. It shouldn't be too hard to add into the script itself, as that is how I originally created the script to begin with. However due to popular opinion I re-wrote it to use REGEX allowing for " speach " to be recognized.

 

Can I just add the implode & explode codes to my SRC?

 

Or may I ask if its possible for you to edit your original disguise script to have the input box so I may just use it instead.

 

Thank you for your wonderful script GmOcean!

 
Posted

 

The issue here, is that the rA version uses commands such as: implode & explode. Both of which are not apart of eA's standard revision.

 

Also, as for using input box and the like. It shouldn't be too hard to add into the script itself, as that is how I originally created the script to begin with. However due to popular opinion I re-wrote it to use REGEX allowing for " speach " to be recognized.

 

Can I just add the implode & explode codes to my SRC?

 

Or may I ask if its possible for you to edit your original disguise script to have the input box so I may just use it instead.

 

Thank you for your wonderful script GmOcean!

 

 

 

 

 

Hello Mr. GmOcean?

 

If you would be so kind to kindly help me on your disuise script it would be greatly appreciated.

 

I just want for the NPC to have an "input box" rather than having to shout the answer since my langtype does not support it.

 

Thank you sir. :)

 

 

 

 

 

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...