Wuthow
New Member
- Joined
- Jul 22, 2015
- Messages
- 38
- Reaction score
- 2
Hello!
I'm rather new when it comes to OT's and scripting but I'm learning quickly and doing my best!
I'm currently using the Emporia NPC files and trying to get the Paradox Tower quest to work on my OT. The NPC Oldrak was broken but I've managed to fix him and get things working (with storage ID's and movement + action scripts) all the way until the Riddler inside the Paradox tower. Is there anyone who possibly could take a look at this? I've studied this code for hours now and I don't know what's malfunctioning.
I'm using [8.60] The Forgotten Server 0.3.6 (Crying Damson) V8 and running my server on Win 8.1, while playing the game on another computer which runs windows 7.
I have also already seen this:
https://otland.net/threads/paradox-tower-npc.110086/#post1095997
but Cykotitan's script broke the NPC completely for me and I've tried re-writing that code etc but I didn't manage to get anything to work.
What I can tell you is that everything's working fine when I talk to him (except that his replies are outside of the "NPC-window" but that isn't a big issue to me...). He gives the replies he's supposed to all the way until he asks what 1+1 is. When I answer that, he's supposed to teleport me to hellgate but that doesn't happen (he never teleports me... and actually, nothing happens at all!). (He's also supposed to teleport you if you answer wrongly, which he also doesn't do).
If I've understood the code correctly, the statement " elseif msgcontains(msg, keyword11) == nil and talkState == 10 then" basically says that in talkstate 10, if I say anything other than the reply which is stored in keyword11, he'll reply with the WRONG! and teleport me.
I think I've also managed to find the different sections in the code;
i) First part after the config is the code segment for when you return to him after you've spoken to a prisoner. (Which I haven't managed to test out yet but it looks like it'd function properly)
ii) Then comes the part with the wrong answers and when you're supposed to get teleported if you answer incorrectly (this is for the second time you talk to him, so I haven't tested it out)
iii) After that comes the part where you have your first discussion with him and you answer the questions for the test. (Works correctly until his last question and he's supposed to say you answered wrong and send you to hellgate)
iv) After that, we have the part with the wrong answers for the first time you talk to him. If you answer incorrectly, he's supposed to send you to hellgate (which doesn't work)
I have checked the coordinates for the posFail and posPass and they're both correct.
The storage value of storage 6667 is equal to one for my character.
The storage value of storage 6668 is nonexistant at the moment and as I see it, I'll update that in the "A Prisoner"-NPC when I talk to him after having been sent to hellgate (which later on will let me access the remaining part of the dialogue with the Riddler (i and ii)
Lastly, if someone has a LUA file for the last NPC in the quest (A Prisoner) with working storages etc, I'd be glad if they could provide me with it (else I feel confident that I can make it by myself but it'll take some time)
I really wish someone could help me out with this, it'd help me a lot and I'd probbably improve a lot with my scripting if somebody does! Please help me, I've done all I can by myself
--------
Code in next reply, I wasn't able to post it in this one because the message was too long.
I'm rather new when it comes to OT's and scripting but I'm learning quickly and doing my best!
I'm currently using the Emporia NPC files and trying to get the Paradox Tower quest to work on my OT. The NPC Oldrak was broken but I've managed to fix him and get things working (with storage ID's and movement + action scripts) all the way until the Riddler inside the Paradox tower. Is there anyone who possibly could take a look at this? I've studied this code for hours now and I don't know what's malfunctioning.
I'm using [8.60] The Forgotten Server 0.3.6 (Crying Damson) V8 and running my server on Win 8.1, while playing the game on another computer which runs windows 7.
I have also already seen this:
https://otland.net/threads/paradox-tower-npc.110086/#post1095997
but Cykotitan's script broke the NPC completely for me and I've tried re-writing that code etc but I didn't manage to get anything to work.
What I can tell you is that everything's working fine when I talk to him (except that his replies are outside of the "NPC-window" but that isn't a big issue to me...). He gives the replies he's supposed to all the way until he asks what 1+1 is. When I answer that, he's supposed to teleport me to hellgate but that doesn't happen (he never teleports me... and actually, nothing happens at all!). (He's also supposed to teleport you if you answer wrongly, which he also doesn't do).
If I've understood the code correctly, the statement " elseif msgcontains(msg, keyword11) == nil and talkState == 10 then" basically says that in talkstate 10, if I say anything other than the reply which is stored in keyword11, he'll reply with the WRONG! and teleport me.
I think I've also managed to find the different sections in the code;
i) First part after the config is the code segment for when you return to him after you've spoken to a prisoner. (Which I haven't managed to test out yet but it looks like it'd function properly)
ii) Then comes the part with the wrong answers and when you're supposed to get teleported if you answer incorrectly (this is for the second time you talk to him, so I haven't tested it out)
iii) After that comes the part where you have your first discussion with him and you answer the questions for the test. (Works correctly until his last question and he's supposed to say you answered wrong and send you to hellgate)
iv) After that, we have the part with the wrong answers for the first time you talk to him. If you answer incorrectly, he's supposed to send you to hellgate (which doesn't work)
I have checked the coordinates for the posFail and posPass and they're both correct.
The storage value of storage 6667 is equal to one for my character.
The storage value of storage 6668 is nonexistant at the moment and as I see it, I'll update that in the "A Prisoner"-NPC when I talk to him after having been sent to hellgate (which later on will let me access the remaining part of the dialogue with the Riddler (i and ii)
Lastly, if someone has a LUA file for the last NPC in the quest (A Prisoner) with working storages etc, I'd be glad if they could provide me with it (else I feel confident that I can make it by myself but it'll take some time)
I really wish someone could help me out with this, it'd help me a lot and I'd probbably improve a lot with my scripting if somebody does! Please help me, I've done all I can by myself
--------
Code in next reply, I wasn't able to post it in this one because the message was too long.