Jump to content

ToiletMaster

Members
  • Posts

    276
  • Joined

  • Last visited

Everything posted by ToiletMaster

  1. hmmm, but you're talking about if set example hunting == 2 right? but i'm talking about i have 20 quest available and they can take at max 3 only. or am i understanding it wrongly lol. please feel free to correct me
  2. Hi there guys, currently i'd like to ask how to place a limit on a quest if it reaches 3 and above? Lets say i have 20 quest available. If they take up 3 quest and above it'll state that you cant take anymore quest. Is it possible? so far this is what i've got so far. After putting the setquest would be like .@quest$ + 1 and then start off with if (.@quest$ >= 3) { mes "you cant take anymore quest"; close; }
  3. Hi guys, This is a funny request as... currently if let's say you're 5 cells away from the NPC. It'll state "you're not close enough" but once you're 5 cells within the npc, it'll state something else. Is it possible to make this up? Thanks!
  4. hmmm, well then which ragexe version are you using currently? 2012-04-10? make sure your mmo.h is set to the date that you're using it based inside. if not then download the packets from here and paste them inside your packet file. http://svn6.assembla.com/svn/ClientSide/Packets/Packet_db/
  5. hmmm i would consider myself... as an amateur mapper and scripter now! Yay! xD

  6. i prefer if you take a look at this then haha http://www.youtube.com/watch?v=3LTOOEjRtUo maybe it'll clear up your mind on what you're currently missing xD. Edit: you don't need hamachi's IP address, so long as you have a router with you. again, use whatismyip.com and get your ip address from here. do not use hamachi as that's more confusing than ever lol. I'd prefer if you're able to host it locally 1st before you host it for public. Because it's much easier to troubleshoot for locally than publicly, because once we know you're able to connect it locally, then we can shorten down the list of problems occuring. P.S. I don't have a VPS as well, i've hosted it in my home during my close beta session, no hamachi required or any other 3rd party stuffs. just wanna let you know xD, i believe hamachi is just an extra step to put in so it's not really recommended.
  7. yep, place the 192.168.1.2 inside there. but did you open the ports for 6121,5121,6900? this allows other machines to connect to your friend's network. if not the entire will be blocked. 12.3.4.5 = Public IP 192.168.0.100 = Local IP just replace these values with yours. so meaning all the public ip address should be 126.15.44.132 and local ip address should be 192.168.1.2 Aside from that, did you set your machine to have a static IP address instead of dynamic IP address? If not it's gonna cause quite a bit of a challenge to make it work lol
  8. check my previous post. certain configurations need to be local IP not public IP. yours is all public IP.
  9. lol, i was just about to say about the 2,2 xD Thanks! This worked! Tested and works greatly!
  10. can you try checking your char server, map server whether you've placed your public ip inside there as well ? remember some are local some are public. lemme give you an example on how it looks. Char_Athena.conf // Login Server IP // The character server connects to the login server using this IP address. // NOTE: This is useful when you are running behind a firewall or are on // a machine with multiple interfaces. login_ip: 192.168.0.100 <------ must be Local IP address // The character server listens on the interface with this IP address. // NOTE: This allows you to run multiple servers on multiple interfaces // while using the same ports for each server. //bind_ip: 127.0.0.1 // Login Server Port login_port: 6900 <---- make sure port has been forwarded from your router. // Character Server IP // The IP address which clients will use to connect. // Set this to what your server's public IP address is. char_ip: 12.23.4.5 <---- place public ip address here map_athena.conf // Character Server IP // The map server connects to the character server using this IP address. // NOTE: This is useful when you are running behind a firewall or are on // a machine with multiple interfaces. char_ip: 192.168.0.100 <--- Again local IP Address // The map server listens on the interface with this IP address. // NOTE: This allows you to run multiple servers on multiple interfaces // while using the same ports for each server. //bind_ip: 127.0.0.1 // Character Server Port char_port: 6121 <----- Make sure port forwarded from Router // Map Server IP // The IP address which clients will use to connect. // Set this to what your server's public IP address is. map_ip: 12.23.4.5 <---- Insert public address here. // Map Server Port map_port: 5121 <--- Make sure the port is forwaded from router! subnet.conf subnet: 255.255.255.0:public IP:public IP
  11. This is a local IP address, everyone has that and its only unless your friend is hosting within the same network. (Example : Same house, same college or something) If not, make sure your friend is hosting the RO server with all the server files with him. Then, make sure the clientxml must be his public IP address. you can get his public ip address here http://www.whatismyip.com/ then paste it in the clientxml and also change "certain" ip address from map,login.conf,subnet.conf from there.
  12. Hi guys, currently i'm using npc sprite 45 warp to act as a "special warp" that requires people to have certain conditions then only they can pass. Here's what i've done so far, there's no error coming out from the mapserver but the NPC does nothing, my character would move around the warp npc and nothing else. no messages nor warp after passing the requirements lunette,28,98,0 script lun002 45,{ OnTouch: if (BaseLevel < 100) { mes "I need to be level 100 and above"; close; } else { warp "lunette_in",21,12; end; } }
  13. lol that's why i was wondering, where did i go wrong this time xD. Well at least the confusion is cleared! mes "[^80B584Xyratra^000000]"; if ( countitem(909) < 20 ) mes "I still require "+( 20 - countitem(909) )+" more Jellopies from porings"; if ( countitem(935) < 20 ) mes "I still require "+( 20-countitem(935) )+" more Shells from chonchons."; This is a pretty nice code here hahaha. it can really reduce the amount of lines i need to write Thanks again Emistry! All problems solved!
  14. Err it dint bypass though, everything seems to working fine for it. Here's some picture to show you. For those who do not know what items are they. Item 909 : Jellopy Item 935 : Shell Used the same code as before. if ( countitem(909) < 20 && countitem(935) < 20 ) { mes "[^80B584Xyratra^000000]"; mes "I still require "+( 20-countitem(909) )+" more Jellopies from porings,"; mes "and "+( 20-countitem(935) )+" more Shells from chonchons."; close; } if (countitem(909) >= 20 && countitem(935) <= 19) { mes "[^80B584Xyratra^000000]"; mes "I see you have enough jellopies. But i still require "+( 20-countitem(935) )+" more Shells from chonchons."; close; } if ( countitem(935) >= 20 && countitem (909) <= 19) { mes "[^80B584Xyratra^000000]"; mes "I see you have enough shells, however I still require "+( 20-countitem(909) )+" more Jellopies from porings."; close; } Picture one, this is without any of the required items. Picture two shows having less of than both of the required quantity. Picture Three shows having 20 Jellopies. Picture Four shows having 20 Shells Picture 5 shows fulfilling both the required quantity From doc/script_commands.txt Comparisons can be stacked in the same condition: && - Is True if and only if BOTH sides are true. ('1==1 && 2==2' is true. '2==1 && 1==1' is false.) || - Is True if either side of this expression is True. 1==1 && 2==2 is True. 1==1 && 2==1 is False. 1==1 || 2==1 is True. Did i miss any methods of bypassing? Hope to know thanks! Cheers, TM
  15. Ok lemme explain fully how my quest works. Edit: Additional Info Forgotten to mention, however i would prefer the NPC to state both items throughout the entire conversation. That's why i made the script to work like this. First off all, the quest requires the person to collect 20 Jellopies and 20 Shells. Now for this part, if you've read the message, it's stated, I see you have enough shells, But i still require "+( 20-countitem(935) )+" more Shells from chonchons. "I See you have enough shells " would reconfirm that he has gotten the shells and does not require anymore shells. and also this is the part where comes in. once i have 20 items it'll just reconfirm i have enough. This is to ensure that no negative values come about and confirm that the player has gotten enough shells. Because i've tested having 100 Jellopies and then the quest giver would say I require -80 More jellopies and 20 more shells. Therefore, i've set the script to work in that sense where if the person has gotten 1 of the requirements, it would not state how much more of the completed item that he require anymore, and would state only the ones he's still missing. If they have both 20 jellopies and 20 shells, then the quest would continue progressing. (No hard feelings anywhere, i'm here to learn as well however i currently fail to see my mistake.) Thank you for your feedback, Cheers, TM
  16. errr, well i tested just now and it din't trigger the other ones, here's how i made it look like. hopefully it'll clear some confusion so far lol. if ( countitem(909) < 20 && countitem(935) < 20 ) { mes "[^80B584Xyratra^000000]"; mes "I still require "+( 20-countitem(909) )+" more Jellopies from porings,"; mes "and "+( 20-countitem(935) )+" more Shells from chonchons."; close; } if (countitem(909) >= 20 && countitem(935) <= 19) { mes "[^80B584Xyratra^000000]"; mes "I see you have enough jellopies. But i still require "+( 20-countitem(935) )+" more Shells from chonchons."; close; } if ( countitem(935) >= 20 && countitem (909) <= 19) { mes "[^80B584Xyratra^000000]"; mes "I see you have enough shells, however I still require "+( 20-countitem(909) )+" more Jellopies from porings."; close; } if i used || it would trigger the first command even though i had one of the items and it'll state -80 if let's say i had 100 jellopies. so i wanted to make sure no negative values came out so that's why i did it like this. edit: I believe || would trigger when i fufilled one of the conditions? where && would trigger when both conditions are fufilled?
  17. just one thing to add on though emistry, because if have more than one if in that script so i need to use && instead of || Thanks again !
  18. Oh gosh! Thank you so much! That's what i was missing the entire time! The bloody brackets! Thanks for your help capuche! Thanks for noticing it emistry! I've changed it as well! Thanks again !
  19. Hey feefty thanks for the help, however i'm getting debug messages from this and the chat goes blank. I've actually tried this code before but it dint work >_> the error code [Error]: script:op_2: invalid data for operator C_SUB [Debug]: Data: string value="I still require 20" [Debug]: Data: number value=0 [Debug]: Source (NPC): Xyratra at lunette (43,98) part of my script if (countitem(501) < 5) && (countitem(502) < 5) { mes "I still require "+20-countitem(512)+" more apples!"; close; }
  20. Hi there, i've searched the forum actually. i've stumbled it before but i can't find back the thread. Currently i wanna place like example i need 20 apples. If lets say i only have 5 apples, it'll state that you need 15 more apples. Thanks!
  21. Thanks annie for clearing it up! Now at least i know that i can use set instead of #! Cheers!
  22. Hi there guys, I have a question regarding about variables. As " # " is considered a permanent variable for all characters of that accounts and is highly not recommended, what about using the command " set ". Example, set hello,1; would this be considered bad memory for the server? or is it harmless? Thanks!
  23. its fine haha, thanks for your comments and yeah its in it's first edition. certain things need to be added but overall it'll look more or less like this haha haha thanks for your comment! and also...
  24. Sorry kasumy but i don't get your sentence lol, mind rephrasing it?
  25. Thank you for the great comment! I'll be staying tuned to look at your maps as well!
×
×
  • Create New...