Jump to content
  • 0

Disguise Event script edit


johnbond

Question


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

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! :)

 

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  182
  • Reputation:   22
  • Joined:  12/30/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

 

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

Anyone? Thanks!
 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

 

 

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!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  

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.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

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!

 
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  113
  • Topics Per Day:  0.03
  • Content Count:  457
  • Reputation:   11
  • Joined:  02/17/13
  • Last Seen:  

 

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. :)

 

 

 

 

 

 

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