• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Mod/pop

Mera Mero

Guess Who?
Joined
Dec 27, 2014
Messages
417
Reaction score
86
Hello Otlanders
i just wonder if someone can help me to fix this mad to be perfect ;) this mod is popquiz here
http://otland.net/threads/teckmans-pop-quiz.140036/
but there are some problems need to fix
1-when someone answer the question he get the money but the problem is if someone answer the same question with same answer he will find the script says (this answer is wrong) but the answer is already right + i already answered on it by another player, the script must say The quiz has already ended when someone answer the question
2-i need to reward the player another item not cash like {item = 3970, count = 1} or another id
3-i need it to start it on X time and end it on X time not interval like it is now, with talkaction + automatic system on that X time
Thank you
MeRa
TFS 0.3.6 // Tibia 8.60
 
Last edited:
i used this mod but there are some problems with it ,i think its looks like yours :S i hope someone help us
 
mmm so what we will do now :S no one has replied with an solve for my problems :S
is it hard or what? sorry but i'm newbie and don't know much things
 
State what you want in bullet points & ill do it in my free time :)
but as mera said there are problems with it like if any player answer the question and another player answer it he will find it wrong answer but we need to say the event is already done like the mod said i hope you read the problems and understand it as well
 
State what you want in bullet points & ill do it in my free time :)
that's all i need :P
1-when someone answer the question he get the money but the problem is if someone answer the same question with same answer he will find the script says (this answer is wrong) but the answer is already right + i already answered on it by another player, the script must say The quiz has already ended when someone answer the question
2-i need to reward the player another item not cash like {item = 3970, count = 1} or another id
3-i need it to start it on X time and end it on X time not interval like it is now, with talkaction + automatic system on that X time
 
why you guys keep ignoring my posts? i just wants to know the reason :mad:

I imagine you are being ignored here simply because you don't desire to learn, but rather desire for someone to fix a problem for you. I sent you a simple fix, told you to find a line and replace it with mine, well since you were trying to use CTRL+F to find the line, you didn't find it, instead of looking inside the script for anything even close and trying to notice the difference, or even spotting the small difference in the lines I submitted to you to find the difference and see why it worked. Nope you sent me your entire script back, saying you couldn't find it.... No one here has the time to just sit around and solve everyone who is looking to run a server's (but not willing to try to learn how to script), problems. We all have our own problems, and we all operate on our own time, so when you are spotted on many threads just asking for a fix, people take note and don't bother even talking to you...
 
I imagine you are being ignored here simply because you don't desire to learn, but rather desire for someone to fix a problem for you. I sent you a simple fix, told you to find a line and replace it with mine, well since you were trying to use CTRL+F to find the line, you didn't find it, instead of looking inside the script for anything even close and trying to notice the difference, or even spotting the small difference in the lines I submitted to you to find the difference and see why it worked. Nope you sent me your entire script back, saying you couldn't find it.... No one here has the time to just sit around and solve everyone who is looking to run a server's (but not willing to try to learn how to script), problems. We all have our own problems, and we all operate on our own time, so when you are spotted on many threads just asking for a fix, people take note and don't bother even talking to you...
i'm triyng to learn and i tired to fix it but i failed everytime i fix it and still learning about scripting from
http://otland.net/threads/scripting-guide.74030/
but i need time to learn more that's all -.-
 
What I am saying, is, that you haven't shown anyone that you are trying to learn. Again, go back to how simple of a fix I made for you... Literally the only thing I changed in that code was to add

<= 10

That's it! That's all I added... But you couldn't notice the difference? For someone who is trying to learn you are sure missing something that should have stuck out immediately, especially since you were requesting a limit of 10, and 10 only appears in that script in one spot!!!!

I'm not saying you aren't trying to learn, but it definitely appears as if you don't have a desire to actually learn, this is why people aren't replying to you, that is all, I was merely trying to answer your question...


why you guys keep ignoring my posts? i just wants to know the reason :mad:
 
There are a lot of fights here, but this fight between you and him, but this situation and this hated will not benefit me anything As I said earlier, I still learn and I want to help this and this is not the theard of imback1 this to me, so do not take me with him because of this hate!
 
There are a lot of fights here, but this fight between you and him, but this situation and this hated will not benefit me anything As I said earlier, I still learn and I want to help this and this is not the theard of imback1 this to me, so do not take me with him because of this hate!

There is no hate, none at all. I was trying to help him out, why would I help him if I hated him? I am sorry if I made you feel that way, and apologize to imback1 as weLloyd if he felt that way. You are right, this is your thread with your problems, when I get home from school today I will copy the script from your link and see if I can make the necessary adjustments w/ being able to test it though, so you will have to bear with me if I don't get it on the first try.
 
There is no hate, none at all. I was trying to help him out, why would I help him if I hated him? I am sorry if I made you feel that way, and apologize to imback1 as weLloyd if he felt that way. You are right, this is your thread with your problems, when I get home from school today I will copy the script from your link and see if I can make the necessary adjustments w/ being able to test it though, so you will have to bear with me if I don't get it on the first try.
oh thx man ,sure i'll be here to test it with you cuz really i couldn't fix it :S
 
As far as I can read, it tells me that the script is working just as you intend with it saying "The quiz has already ended." I would say to get all those else's gone and run separate checks to see. I would also be curious as to what you are getting when running print(" .. getGlobalStorageValue(config.storage) .. ") , since I am still noobie with the tables. Anyways, for the money, replace

doPlayerAddMoney(cid, type(config.prize) == "table" and math.random(config.prize[1], config.prize[2]) or config.prize)

with

doPlayerAddItem(id, count) <--- just guessing here on functions, need a function list.....

and that should work for w/e item you want, replace id with the item id, and count with how many you want. As for the interval vs standard time? I'm unfamiliar with your server so I would say easiest way to make it work (if there isn't a function, a parameter or something else like a lib or something you could use to make it easier), is to make the event still on interval, but checking for a storage value, and make the talkaction set the storage value. Then within that, use addevent to make it do the quiz part every twenty four hours, you would have to use storage a few places extra, but it would work, again I am unfamiliar with that distro. Was only trying to help since I said I would. But I did take a look and organized the code, it appears to be working correctly, again I would get rid of the else's and make seperate checks to make sure, also I would get rid of some of those else's anyways, not really for anything, the one that says answer is wrong could be done better, but it also should work because all the rest of the checks should work, idk what the problem is there, it sets the storage to nil, so really it should all work, but getting the wrong message I can't see why.
 
As far as I can read, it tells me that the script is working just as you intend with it saying "The quiz has already ended." I would say to get all those else's gone and run separate checks to see. I would also be curious as to what you are getting when running print(" .. getGlobalStorageValue(config.storage) .. ") , since I am still noobie with the tables. Anyways, for the money, replace

doPlayerAddMoney(cid, type(config.prize) == "table" and math.random(config.prize[1], config.prize[2]) or config.prize)

with

doPlayerAddItem(id, count) <--- just guessing here on functions, need a function list.....

and that should work for w/e item you want, replace id with the item id, and count with how many you want. As for the interval vs standard time? I'm unfamiliar with your server so I would say easiest way to make it work (if there isn't a function, a parameter or something else like a lib or something you could use to make it easier), is to make the event still on interval, but checking for a storage value, and make the talkaction set the storage value. Then within that, use addevent to make it do the quiz part every twenty four hours, you would have to use storage a few places extra, but it would work, again I am unfamiliar with that distro. Was only trying to help since I said I would. But I did take a look and organized the code, it appears to be working correctly, again I would get rid of the else's and make seperate checks to make sure, also I would get rid of some of those else's anyways, not really for anything, the one that says answer is wrong could be done better, but it also should work because all the rest of the checks should work, idk what the problem is there, it sets the storage to nil, so really it should all work, but getting the wrong message I can't see why.
i'm lost :oops: you told me about too many things to do but i didn't get Useful thing till now btw if you are asking for my functions of my server here is
 

Attachments

i fixed 2 problems till now , i still need the last one to not make debug on the server and it's
if someone answer the same question with same answer he will find the script says (this answer is wrong) but the answer is already right + i already answered on it by another player, the script must say The quiz has already ended when someone answer the question
 
Back
Top