Jump to content

Emistry

Forum Moderator
  • Posts

    10018
  • Joined

  • Days Won

    408

Everything posted by Emistry

  1. remove these 2 lines and recompile https://github.com/rathena/rathena/blob/bdd63022a9c479df833304add9537eca7f39b331/src/map/status.cpp#L6370-L6371
  2. try - script pvppoint -1,{ OnInit: .same_kill_count = 10; .same_kill_point_penalty = -30; .killaddpoint = 1; //points to add when kill .diedeductpoint = 1; //points to deduct when died end; OnPCKillEvent: if(getcharid(3) == killedrid || !getmapflag(strcharinfo(3),mf_pvp)) end; if (!LAST_KILLEDRID || LAST_KILLEDRID == killedrid) { LAST_KILLEDRID = killedrid; LAST_KILLEDRID_COUNT++; if (LAST_KILLEDRID_COUNT >= .same_kill_count) { addtimer (60 * 1000), strnpcinfo(3)+"::OnWarp"; #pvppoints -= .same_kill_point_penalty; dispbottom "You killed "+rid2name(killedrid)+" "+.same_kill_count+" times, hence you gained "+.same_kill_point_penalty+" PVP Points."; dispbottom "You got total "+#pvppoints+" Points."; end; } } else LAST_KILLEDRID_COUNT = 1; #pvppoints += .killaddpoint; dispbottom "You killed "+rid2name(killedrid)+" you gained "+.killaddpoint+" PVP Points."; dispbottom "You got total "+#pvppoints+" Points."; attachrid(killedrid); #pvppoints -= .diedeductpoint; dispbottom "You are killed by "+rid2name(killerrid)+" you lost "+.diedeductpoint+" PVP Points."; dispbottom "You got total "+#pvppoints+" Points."; end; OnWarp: if (getmapflag(strcharinfo(3),mf_pvp)) { warp "SavePoint", 0, 0; } end; }
  3. everything is in the wiki and the forum, search it. https://github.com/rathena/rathena/wiki/installations
  4. click the button "Run anyway". If its a malicious program, then delete it and recreate it or grab it from a clean source.
  5. OnPCDieEvent: .@killerrid = killerrid; if (strcharinfo(3) == .map$ && .@killerrid != getcharid(3)) { #GOLDPOINTS = 0; dispbottom "You died, you lost all the point."; } end; try this
  6. the error are pretty much self-explained. reduce the number of drop list you defined for the map with nightmaredrop ...
  7. } else if (strncmp(map_name, "eden", 2) == 0) { town = 745; } change to } else if (strncmp(map_name, "eden", 2) == 0) { town = 37; } do not jump the index ... and #define MAP_MOC_PARA01 "eden" change to your actual map name #define MAP_MOC_PARA01 "moc_para01"
  8. Emistry

    Vending Bug

    perhaps you adjusted the vending tax ? conf/battle/items.conf#L19-L27
  9. //Auto Reward to Master Guild if ( getcharid(2) == $koegid && getguildmaster(getcharid(2)) == strcharinfo(0) ) getitem 607,1; // configure prize here change to //Auto Reward to Master Guild if ($koegid) { .@aid = getguildmasterid($koegid); if (.@aid && isloggedin(.@aid)) { getitem 607, 1, .@aid; } }
  10. prontera,155,185,6 script Orzuelo 550,{ if (readparam(bAgi) >= 89 && countitem(2403) > 0) { mes "Your AGI >= 89 AGI and you have a "+getitemname(2403); soundeffectall "wild_rose_die.wav",0; } else { mes "something is missing"; } close; }
  11. try if (readparam(bAgi) >= 89 && countitem(2403) < 1) goto resist;
  12. - script sample_main -1,{ OnPCDieEvent: if (getmapflag(strnpcinfo(3), mf_pvp)) { getmapxy(@map$, @x, @y, BL_PC); callsub(L_DropItem, 969); callsub(L_DropItem, 724); callsub(L_DropItem, 7049); } end; L_DropItem: .@item_id = getarg(0, 0); if (.@item_id) { .@countitem = countitem(.@item_id); delitem .@item_id, .@countitem; makeitem .@item_id, .@countitem, @map$, @x, @y; } return; } prontera,1,1,4 script Sample 4_F_KAFRA1,{ if (countitem(47003)) { .@rate = rand(100); if (.@rate < 5) { .@item_id = 969; } else if (.@rate < 25) { .@item_id = 724; } else if (.@rate < 75) { .@item_id = 7049; } else { // nothing } if (.@item_id) { getitem .@item_id, 1; movenpc strnpcinfo(3), rand(300), rand(300), rand(8); } } end; } prontera,1,1,4 duplicate(Sample) Sample#1 4_F_KAFRA1 prontera,1,1,4 duplicate(Sample) Sample#2 4_F_KAFRA1 prontera,1,1,4 duplicate(Sample) Sample#3 4_F_KAFRA1
  13. bonus2 bSubEle,n,x; x% Damage reduction against element n. n: 0=Neutral, 1=Water, 2=Earth, 3=Fire, 4=Wind, 5=Poison, 6=Holy, 7=Dark, 8=Spirit, 9=Undead doc\item_bonus.txt
  14. - script sample -1,{ OnInit: OnPCLoginEvent: OnPCLogoutEvent: .@total_user = getusers(1); setbattleflag("base_exp_rate", (.@total_user * 100)); setbattleflag("job_exp_rate", (.@total_user * 100)); end; }
  15. 32508:32509:32510,{ if (BaseLevel < 100) { .@rate += 50; } else if (BaseLevel < 200) { .@rate += 50; } else { .@rate = 100; } bonus2 bExpAddRace,RC_All,.@rate; } try this, your script has wrong usage of curley brackets.
  16. warp ''atlantis", 0, 0; change into warp "atlantis", 0, 0;
  17. getmapxy(.@mapname$, .@x1, .@y, 1, "XXXXXXXXXXXXXXXXX"); change the BL_TYPE parameter type into getmapxy(.@mapname$, .@x1, .@y, BL_NPC, "XXXXXXXXXXXXXXXXX");
  18. edit this file db/re/item_noequip.txt
  19. already converted. db/import-tmpl/mob_avail.yml
  20. when u allow the item to be vendable, in same term, it mean that item is transferable .... no point of making it account bound because its no longer account bounded when you attempt to vend it. beside, what the video said and what you're doing are different. the video mentioned about itemA convert to itemB before it could be transfer to another person. In your case, its just itemA involved all this time. You're not following what the video suggested.
  21. try 20400,NEW_S_EMPEL_1,Guardian Stone,Guardian Stone,90,120000,0,0,0,0,1,2,40,50,1,1,1,1,1,1,0,0,0,0,20,0x170000,300,1288,288,384,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 20401,NEW_S_EMPEL_2,Guardian Stone,Guardian Stone,90,120000,0,0,0,0,1,2,40,50,1,1,1,1,1,1,0,0,0,0,20,0x170000,300,1288,288,384,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 20402,NEW_EMPELIUM,Emperium,Emperium,90,68430,0,0,0,1,60,71,40,50,1,17,80,50,26,20,10,12,0,8,26,0x6200000,300,1288,288,384,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 - Mob: NEW_S_EMPEL_1 Sprite: S_EMPEL_1 - Mob: NEW_S_EMPEL_2 Sprite: S_EMPEL_2 - Mob: NEW_EMPELIUM Sprite: EMPELIUM
  22. as mentioned, anything that above the ID limit will show as poring. since you've updated the rathena to use mob_avail.yml, you have no choice but to adapt it into mob_avail.yml.
  23. change the max level of each classes into 30. https://github.com/rathena/rathena/blob/master/db/re/job_exp.txt
  24. what's the point of make it account bound when you want to allow it vend-able? if you want it to freely transfer here and there, then dont use bounded items.
×
×
  • Create New...