Jump to content

pajodex

Members
  • Posts

    439
  • Joined

  • Last visited

  • Days Won

    26

Everything posted by pajodex

  1. - script asdasdasd -1,{ OnNPCKillEvent: ++$mobkillcount; // mob kill counter if ( $mobkillcount > 20000 ) { // triggers when mob counter reaches 20k $mobkillcount = 0; // reset the counter to 0 .@mobid = 1001; // MOB ID of the monster setarray .@map$, // list the maps you wish to spawn the mobs "prontera", "prt_fild01", "prt_fild02"; // summons mob id to the maps listed for ( .@i = 0; .@i < getarraysize(.@map$); ++.@i) { monster .@map$[.@i], 0, 0, "--ja--", .@mobid, rand(10,20); // random of 10 - 20 mobs spawns } announce "World Bosses has invaded the server!", bc_all; // announce } end; } not tested but you should get the idea
  2. Obviously Easycore's Extended BG needs SRC Mod..
  3. --------------------------------------- *getinventorylist {<char_id>}; This command sets a bunch of arrays with a complete list of whatever the invoking character has in their inventory, including all the data needed to recreate these items perfectly if they are destroyed. Here's what you get: @inventorylist_bound[] - the bound type of the items (see BOUND_* constants) This could be handy to save/restore a character's inventory, since no other command returns such a complete set of data, and could also be the only way to correctly handle an NPC trader for carded and named items who could resell them - since NPC objects cannot own items, so they have to store item data in variables and recreate the items. Notice that the variables this command generates are all temporary, attached to the character, and integer. Be sure to use @inventorylist_count to go through these arrays, and not 'getarraysize', because the arrays are not automatically cleared between runs of 'getinventorylist'. ---------------------------------------
  4. Here rAthena has very sophisticated functions. please use them.
  5. May I know where are the achievement score stored? I cant seem to find it anywhere in sql database..
  6. it seems you are using extended battleground src mod... (as I have thought) .red = bg_create ( strnpcinfo(4), 251, 149, 0, strnpcinfo(0)+"::OnRedQuit", strnpcinfo(0)+"::OnRedDie" ); .blue = bg_create ( strnpcinfo(4), 47, 149, 1, strnpcinfo(0)+"::OnBlueQuit", strnpcinfo(0)+"::OnBlueDie" );
  7. not helpful, post your console error.. but im guessing you are using either an old or wrong emulator..
  8. *setlook <look type>,<look value>{,<char_id>}; *changelook <look type>,<look value>{,<char_id>}; 'setlook' will alter the look data for the invoking character. It is used mainly for changing the palette used on hair and clothes: you specify which look type you want to change, then the palette you want to use. Make sure you specify a palette number that exists/is usable by the client you use. 'changelook' works the same, but is only client side (it doesn't save the look value). // This will change your hair color, so that it uses palette 8, what ever your // palette 8 is, your hair will use that color setlook LOOK_HAIR_COLOR,8; // This will change your clothes color, so they are using palette 1, whatever // your palette 1 is, your clothes will then use that set of colors. setlook LOOK_CLOTHES_COLOR,1; Here are the possible look types: LOOK_BASE - Base sprite LOOK_HAIR - Hairstyle LOOK_WEAPON - Weapon LOOK_HEAD_BOTTOM - Head bottom LOOK_HEAD_TOP - Head top LOOK_HEAD_MID - Head mid LOOK_HAIR_COLOR - Hair color LOOK_CLOTHES_COLOR - Clothes color LOOK_SHIELD - Shield LOOK_SHOES - Shoes LOOK_BODY2 - Body style Whatever 'shoes' means is anyone's guess, ask Gravity - the client does nothing with this value. It still wants it from the server though, so it is kept, but normally doesn't do a thing. Only the look data for hairstyle, hair color and clothes color are saved to the char server's database and will persist. Body style will also persist if 'save_body_style' configuration is enabled in '/conf/battle/client.conf'. The rest freely change as the character puts on and removes equipment, changes maps, logs in and out and otherwise you should not expect to set them. In fact, messing with them is generally hazardous, do it at your own risk, it is not tested what will this actually do - it won't cause database corruption and probably won't cause a server crash, but it's easy to crash the client with just about anything unusual. However, it might be an easy way to quickly check for empty view IDs for sprites, which is essential for making custom headgear. Since a lot of people have different palettes for hair and clothes, it's impossible to tell you what all the color numbers are. If you want a serious example, there is a Stylist script inside the default rAthena installation that you can look at: 'npc/custom/stylist.txt'
  9. don't use `sleep2` Quoted from doc/script_commands.txt sleep 10000; //pause the script for 10 seconds and ditch the RID (so no player is attached anymore) sleep2 5000; //pause the script for 5 seconds, and continue with the RID attached. I didn't test this but ohh well... prontera,148,195,5 script GM Support Assistant 469,{ mes .n$; if ( !.onlinegm ) { mes "No available GMs at the moment"; close; } mes "No. of GMs Online :"+ .onlinegm; mes " "; mes "Would you like to contact them?"; next; if(select("Yes","No")==2) close; mes .n$; if(gettimetick(2) < #HelpDelay) { mes "You may only send a message every 5 minutes!"; close; } atcommand "@request This player is in need of assistance."; #HelpDelay = gettimetick(2) + 300; mes "Game Masters has been notified."; close; OnPCLoginEvent: if ( getgmlevel() > 10 ) ++.onlinegm; end; OnPCLogoutEvent: if ( getgmlevel() > 10 ) --.onlinegm; end; OnInit: .n$ = "[ ^FF55FFGM Support Assistant^000000; ]"; L_Reload: waitingroom "Number of online GMs: "+.onlinegm,0; sleep 3000; delwaitingroom; waitingroom "Do you want to contact GMs?",0; sleep 3000; delwaitingroom; waitingroom "If you need assistance, please click me.",0; sleep 3000; delwaitingroom; goto L_Reload; end; }
  10. Hi guys, I've been out for quite a while, but now I'm starting to get back on track and finishing my projects being left in hiatus for few months.. For now, I want to showcase this script I made. Have a great day! ________________________________________________________________________________________________________________________________________________________________________________ Simple ~ Fun ~ Competitive Find Jakk's Cat Event ~ Mechanics: 1. Find Jakk's cat around Niflheim. 2. You can lure it by using `Fresh Fish` towards Jakk. 3. There is only 1 cat in the map, you will need fight for it. 4. Who ever takes Jakk's cat to him wins the event. Video Preview:
  11. obviously, you might be using an old emulator or another emulator.. keep your emulator updated..
  12. @NakedWolf I assume you are using an older server files.. you can fix that by putting the "++" after the variable.. for example from: ++.@i ++.redpoints to: .@i++ .redpoints++
  13. This is most likely caused by the NPC itself.. check script.. or post it here
  14. make to mes "[自動倒數器]"; announce "The race will begin",bc_all,0xFF0000; initnpctimer; // initialize npc timer end; and here to OnTimer35000: stopnpctimer; // stops the timer announce "0",15; end;
  15. Hi, it could be available any time soon.. as of now, my finger is badly hurt and needs time to recover.. i'll get back on this soon.. Updated! Uploaded some videos! UPDATE STATUS : COMPLETE PS : This system is 100% compatible with extended battleground
  16. pajodex

    gift npc

    Im pretty sure it has been made recently in a post here.. maybe use search engine next time.. https://rathena.org/board/topic/115772-race-to-99-per-class/ or from @AnnieRuru https://rathena.org/board/topic/75015-asking-for-a-prize-npc/ or from me: https://rathena.org/board/topic/115293-race-to-99-rewards/#comment-344269 or you can simply scroll thru trunk/doc/script_commands.txt and you will find conditions and be able to make as simple as this.. - script askdmasd -1,{ if( BaseLevel != 99 ) { // When a player reaches Lv 99 mes "You need to be lvl 99 to claim rewards"; close; } if( getreward ) { mes "You can only claim reward once per character"; close; } mes "Congrats! You've reached level 99"; getitem 501,10; // gets reward getreward = 1; // Prevent abuse close; }
  17. look goto line 69 or look for this : for (.@i = 0, .@i < getarraysize(.@rewardablejobs); .@i++) { set $rewarded$[.@rewardablejobs[.@i]], ""; } and change to : for (.@i = 0; .@i < getarraysize(.@rewardablejobs); .@i++) { set $rewarded$[.@rewardablejobs[.@i]], ""; } Typo error only.. just changed the comma "," to semi colon ";"
  18. Yup I found most of it in src.. also, adding clan seem to have to do with sql too.. that's why I put it in database xd The ones found when you press `ctrl+g` and you can find them on prt_in something..
  19. Hi, I don't know if this is the right section.. Anyways, is it possible to add custom clans?
  20. https://rathena.org/thirdpartyservices/ Or follow instructions in here: https://github.com/rathena/rathena/wiki/installations
  21. https://rathena.org/board/topic/114890-world-boss-by-sehrentos/?tab=comments#comment-342782
  22. Yup.. True.. But it would still be cool if rA also implements this system. As this system, if I am not mistaken, can reduce the usage of loop script commands for checking players, can be accessed by other npcs, and etc.. And it would be easier for other scripters to understand how the script will work.. And this would also make sense.. But still the convenience it would contribute would be a great help. Well, this is just my selfish suggestion.. It is not really something important at all.. ?
  23. Hi, So, I hope I would be hear out.. browsing thru Hercules forum, I found this particular topic.. What interest me the most is the Queue Iterator Script commands. These are the commands from Hercules which can be used also here in rAthena. (Copied and pasted from that post) My point is.. can this also be implemented in rAthena or something a-like? This would greatly help improve all scripts that will utilize queue system.. especially BGs.. This is just a suggestion.. Though it is possible to make a queue using arrays and stuff but it is more convenient when it has its own script command. Thanks!
  24. https://github.com/pajodex/ScriptCollections/blob/master/super_bank.txt Try my version.
×
×
  • Create New...