Jump to content

Litro Endemic

Members
  • Posts

    283
  • Joined

  • Days Won

    10

Everything posted by Litro Endemic

  1. of course not, i am still one of them :wub: i was making some event treasure hunter, where the player need to break the lock by input serial code number on treasure there is 3 tries for every player, but i was stunted when there is still a player that in process breaking the code, but the treasure have been unlocked by another so the other shouldn't have access on the treasure anymore, btw I am using thanatos tower code guessing.
  2. I just want to override the mes if the states of the npc is no longer available without conditional check, but there is warning pop up on map-server console. while setting state on variable to not longer available can do this it need extra check every continuation, but if there is multiple next or while on the script, it need multiple check after it, so how can I do it the clean or right way ?? protnera,230,273,0 script test override 112,{ attachnpctimer; initnpctimer; while(1) { mes "You are talking to this npc"; next; select("-Yes"); } close; OnTimer15000: detachnpctimer; mes "15 Seconds have passed."; close; } warning pop up on map-server console [Warning]: Unable to restore stack! Double continuation! [Debug]: Previous script (lost): [Debug]: Source (NPC): test override at prontera (230,273) [Debug]: Current script: [Debug]: Source (NPC): test override at prontera (230,273)
  3. edit this files in your grf `data\luafiles514\lua files\navigation\navi_map_krpri.lub`
  4. is the expansion pack request are from server side only or the like client side mod will be granted too? like configured colored item, when one sloted weapon or armor sloted more than one card it will change it s color name, apparently until now is not being achieved (for public use),
  5. Hello Everyone So as of late I am playing Pokemon game on discord and there is this sub game where the bot will spawn pokemon image on the channel and the user on channel only need to guess what is the name of the pokemon, it work to substitute Poke-Ball system and I think this system not far of from disguise so I am thinking to create this one just for the fun, the code is simple and crude so here if any of you interested to make it more robust please do get the needed file here: https://github.com/Litro/disguise-discord to run it you need to fill the value required in config.json file "token" : "" "apikey" : "", "WhiteList": [""], token: you can read the guide how to obtain discord bot token from here apikey: you need to request an API key. Please register an account in divine-pride.net forum and request a key in your profile page. WhiteList: is user id of staff that can use the command to start or stop disguise event. you can read it here for how to obtain it.
  6. +1, yes it would be great, please share the tutorial ?
  7. if I'm not wrong there is gm npc function inside those instance you just need to merge it to one script and make adjustment for the payment or the cost to fill your need search F_GM_NPC in the instances script
  8. maybe you need array manipulation since you need to declare empty array, here an example on both javascript var winner_rank = []; var i; for (i = 0; i < 10; i++) { winner_rank[i] = "Winner "+i; } // result will be like: Winner 0, Winner 1 athena for (.@i = 0; .@i < 10; .@i++) { .@winner_rank$[.@i] = "Winner "+.@i; // type str } // result will be like: Winner 0, Winner 1
  9. hmm... there is no need to declare an empty array, in case like java script you need declare array first before you use it later-on Also, an additional question, can we put an array inside an array? I was thinking of doing something like: setarray details[0],0,1,1,1,1,0; setarray rows[0],details; // when I call rows[0] then it will returns an array that contains 0,1,1,1,1,0 yes you can use coppyarray, maybe you need sometime to read documentation for scripting https://raw.githubusercontent.com/rathena/rathena/master/doc/script_commands.txt read this for reference, and for the example you can directly read inside *copyarray <destination array>[<first value>],<source array>[<first value>],<amount of data to copy>; This command lets you quickly shuffle a lot of data between arrays, which is in some cases invaluable. setarray @array[0], 100, 200, 300, 400, 500, 600; // So we have made @array[] copyarray @array2[0],@array[2],2; // Now, @array2[0] will be equal to @array[2] (300) and // @array2[1] will be equal to @array[3]. So using the examples above: @array[0] = 100 @array[1] = 200 @array[2] = 300 @array[3] = 400 @array[4] = 500 @array[5] = 600 New Array: @array2[0] = 300 @array2[1] = 400 @array2[2] = 0 @array2[3] = 0 Notice that @array[4] and @array[5] won't be copied to the second array, and it will return a 0.
  10. you can put it on import folder in db folder for every corresponding file, per-line you need
  11. maybe you mean to delete an existing array, if yes you can use deletearray. setarray .@this, 1, 2, 3; // int type array setarray .@this$, "1", "2", "3"; // str type array to delete array or empty array above you can do following .@size = getarraysize(.@this); deletearray .@this, .@size; Is there a way to push or pop an array element which will automatically shift them? yes, you can try this http://herc.ws/board/topic/14817-array-manipulation-functions/ maybe if its not working it will need some adjustment to convert to rA script engine Can we use something like labels in arrays, kinda like javascript's [{label:value,label2:value2},{label:value,label2:value2}]? simply nope afaik
  12. I like how you made the waterfall, seeing those guardian make me remember mobile game, clash of clans feel like lara croft on ride mission ?
  13. afaik its not merged or released to master right now, you need to diff it your self https://github.com/rathena/rathena/pull/2494/files
  14. getvariable shouldbechanged to getvariableofnpc *getvariableofnpc(<variable>,"<npc name>") Returns a reference to a NPC variable (. prefix) from the target NPC. This can only be used to get . variables. Examples: //This will return the value of .var, note that this can't be used, since the value isn't caught. getvariableofnpc(.var,"TargetNPC"); //This will set the .v variable to the value of the TargetNPC's .var variable. set .v, getvariableofnpc(.var,"TargetNPC"); //This will set the .var variable of TargetNPC to 1. set getvariableofnpc(.var,"TargetNPC"), 1; Note: even though function objects can have .variables, getvariableofnpc will not work on them.
  15. after @request is send by player it will check if any one that have permission accept request is online, if no body online it should response to the player who sent request "There is no body online to accept request" and if there is let say there is 3 people online that have this permission and one of them is accepting or give response to request, window request on another 2 will be closed can someone help me make this?
  16. is monster spawned changed his level or size display? in my case it didn't
  17. setting mob size with setunitdata isn't working or I have make mistake in this script? prontera,150,150,0 script Mob Control 112,{ mes "input mob id"; input .@mob_id; if (getmonsterinfo(.@mob_id,MOB_NAME) == "null") { mes "monster didn't exist"; close; } monster(strnpcinfo(4),152,148,"Controlled Mob",.@mob_id,1,strnpcinfo(0)+"::OnMobKilled"); copyarray .gid[0], $@mobid[0], getarraysize($@mobid); .@size = getarraysize(.gid); //dispbottom ""+.@size; getunitdata(.gid[0],.@data); setunitdata .gid[0],UMOB_MODE, .@data[UMOB_MODE]|MD_NORANDOM_WALK; setarray .@size2, Size_Small, Size_Medium, Size_Large; .@rand = rand(getarraysize(.@size2)); setunitdata .gid[0], UMOB_SIZE, 0; //for (.@i = 0; .@i < .@size; .@i++) // dispbottom "Mob "+.@i+" ~ GID: "+.gid[.@i]; initnpctimer; end; OnTimer10000: if(unitexists(.gid[0])) { getunitdata(.gid[0],.@data); setarray .@size2, Size_Small, Size_Medium, Size_Large; .@rand = rand(getarraysize(.@size2)); setunitdata .gid[0], UMOB_SIZE, .@size2[.@rand]; setunitdata .gid[0], UMOB_LEVEL, .level++; unittalk .gid[0],"Size: "+.@size2[.@rand]+" ~ Level: "+.level; } initnpctimer; end; }
  18. Can anyone help me to covert atcommand addwarp to script function with additional paramter, the parameter should look like below? *addwarp("warpname","mapname",x,y,"mapname_target",x_destination,y_destination); also can the warp added be deleted with unloadnpc? because atcommand addwarp is persist until reboot
  19. Sorry out of topic, really? that new to me need to check it later... is this just this version or all 2018 clients like this ?
  20. i think dynamic mob is broken
×
×
  • Create New...