Jump to content

Ryokem

Members
  • Posts

    205
  • Joined

  • Last visited

Everything posted by Ryokem

  1. lol, I loved the times on eA where people thought they were pro scripters just by using a for( ; ; ) loop.. That time was pretty funny Useless command anyway, there are tons of better ways to make an infinite loop, I totally agree with Key.
  2. Guess I already anwered you here
  3. change <buff> with the current buff you want to dispell. Actually, you can even cast Dispell on the player if you prefer. unitskilluseid getcharid(3), 289, 5; //Cast a level 5 Dispell on the user
  4. //Dispell single buff sc_end <buff>; //Dispell all active buffs sc_end sc_all;
  5. Ryokem

    getequipid

    If you mean "Custom" equips, getequipid() works fine. If you mean how you are currently 9ressed, hair-style, costume color and so on, maybe you should check http://rathena.org/wiki/Getlook
  6. Yeah, I even helped someone doing the "Guild Alliance Chat" somewhere in eA old forum... looks really similar to my script I guess it would be a nice feature to work on, even if already released, so if you have time to spare, you should give it a try Annie.
  7. 1 warp: <map>,<x>,<y>,<z> script warp_1 45,2,2,{ OnTouch: set .@gid, <value>; //ID of the guild named "triplex"; if( getcharid(2) == .@gid ) warp <to_map>, <to_x>, <to_y>; end; } The other warps are the same, changing the .@gid variable. Also, you can make the same warp portal warping players in different maps based on their curret guild, without creating more warps.
  8. Indeed, I gave you the fix already anyway np, you're welcome
  9. First, do the changes I told you to do to fiz the warnings. then, just change the values of those 3 variables as you like. Set a '0' as .rentcost if you want players not to pay Zeny for renting the room. Also, set a number X>0 as the amount of .rentitem item you want players to pay for renting. If you want a "free" renting, just leave .rentitem = 674 and the other 2 at 0.
  10. try with OnInit: set .rentitemid, 674; // item id use for rent a room - 674 - mithil coin set .rentitemamount, 0; // amount of items to rent a room set .rentcost, 10000000; // otherwise, zeny cost to rent a room end; at the end of the script, before the last } (not in the function of course) I can't really read your script as in the txt file it's not well tabulated and have no time to retabulate :< Try to pastebin for me please :3
  11. Try that yeah. Also, set .@l, getstrlen(.@num+"");
  12. The script you can download is not really tabulated, hard to check. Anyway I'm pretty sure that error comes from a command who needs a string to be used, and passing just an integer. Sure way to correct it is: set .@num, atoi(getarg(0)+""); Same for getstrlen command.
  13. Not really. It's the exact copy of a switch in IPLs. it's perfectly functional and way better than a gettarraysize if not in some dynamic cases. And since long ago, npcwalkto was a bit broken, better use unitwalk tho.
  14. Not 100% sure, but if I remember correctly, OnPCKillEvent just create 'killedrid' variable, as 'killerrid = getcharid(3)'. Anyway, better to store it to avoid any kind of problem .@killer = getcharid(3); attachrid killedrid; // Do stuff attachrid .@killer;
  15. 'ax'toi means a conversion in hexadecimal system, that has numbers from 0 to 9 and letters from A to F. Mostly used in web programming, eA and rA use it a lot for color flags. That's a mere trick but still not the best as efficiency. Works only in rAthena of course as it has some sorto of direct string comparator. It will need the system to make some implicit conversions due to the odd coding to make it like it is. GmOcean's solution was more suitable and actually nicer for the CiC. if( !getstrlen(str$) )
  16. I know this, but I mean... getd(".craft"+ .@i ) actually is an array. So will it just check the first indexed value according to what you said before? Btw, I'm asking those things even if knowing pretty well about IPL, shouldn't you be more clear with easier codes for members who's asking for help? How are them supposed to understand properly what you did if you highlight particular unnecessary constructions about rA, especially if they have no real experiences programming?
  17. Can arrays in rAthena be set without any initial index or dimension? O.o Can an existing array be checked about if empty or not just by calling the array name without any getarraysize command? If so, wow about rAthena
  18. Ryokem

    REMOVED

    I still trying to get what the quality grade is. The grade of materials? the rarity they are found?
  19. Look at your script. You are using an OnInit label, which means your script will run when loaded or server reload, without attaching any RID. So, at who did it suppose to send the mes "Welcome..." ?? You will just get the Player not attached ! error. About this, Valiente's script is a good solution. I believe it doesn't work instead. .@Item array exists only in the scope of its instance. When loaded with OnInit, it will be created until the script ends, that is at the next line. So when people will speak with the NPC, .@item array will just appear as a never-set array. To solvethis, just use NPC attached variable. (.Item).
  20. Nothing wrong, you just didn't copy-paste correctly. Or just you forgot to add the && as well (just cause I forgot to color it)
  21. Assuming that for "coins" you mean "poring coins"... Red-bolded parts is what you need to add.
×
×
  • Create New...