Jump to content

Capuche

Developer
  • Posts

    2407
  • Joined

  • Last visited

  • Days Won

    52

Everything posted by Capuche

  1. what does that mean for you ? lol did you add customs skills?
  2. it's in inter_athena.conf not login_athena.conf it's all or nothing (or ask for a source mod)
  3. if ( getgroupid() != 1 ) callfunc "ticket15";
  4. prontera,150,150,5 script Fokker 56,{ set .@guild_id, getcharid(2); if ( !.@guild_id ) { mes "You are not in a guild"; close; } else if ( getguildmasterid(.@guild_id) != getcharid(0) ) { mes "I only talk to the guild master"; close; } mes "Recall your guild now?"; next; if ( select( "Yes", "No" ) -1 ) end; warpguild "prontera",150,151,.@guild_id; set .click, .click +1; if ( .click % 2 ) end; disablenpc strnpcinfo(3); enablenpc "your npc"; }
  5. a sample, you attached the var to the character train: if ( attach_variable > 0 ) { mes "you already get the items"; close; } mes "That's Great!"; mes "I am giving you these equipments so you can start your adventure!"; getitem 1243,1; getitem 569,100; attach_variable = 1; close; to attach the var to the account, use the prefix # (attach_variable become #attach_variable in our sample)
  6. ?? I don't understand your issue
  7. - script auto_job -1,{ OnPCBaseLvUpEvent: OnPCJobLvUpEvent: if ( BaseLevel != 99 || JobLevel != 50 ) end; if ( roclass(eaclass()|EAJL_UPPER) != -1 ) jobchange Job_Novice_High; }
  8. There is none command to kill the hom - script sdfghjhg -1,{ OnPCLoadMapEvent: if ( strcharinfo(3) != "prontera" ) end; if ( checkhomcall() == 0 ) { dispbottom "you can't enter with your hom"; warp "geffen",0,0; } } prontera mapflag loadevent warp the player to geffen if the player enter in prontera with an active hom
  9. Capuche

    Bot script

    ~ http://rathena.org/board/topic/71297-autoattack/?hl=autoattack
  10. Capuche

    PvP Balance

    https://github.com/rathena/rathena/blob/master/db/skill_damage_db.txt
  11. you use eathena or sth replace .click++; by set .click, .click +1;
  12. you can play with a npc script - script ihbnuio -1,{ OnPCLoginEvent: if ( idonthitmob ) atcommand "@adjgroup <group ID>"; end; }
  13. it's probably beacuase you didn't add yours items in system/itemInfo.lub
  14. - script FloatingRates -1,{ OnInit: // save original values .mydroprate = .exprate = .jobrate = if ( gettime(3) > 2 && gettime(3) < 6 )// check if event hour x3 ? goto OnHour02; else if ... goto ... else {// set original value setbattleflag( "base_exp_rate",.exprate ); etc.. } end; OnHour02: // event x3 setbattleflag( "base_exp_rate",(.exprate * 3) ); etc.. end; OnHour06: // end of x3 --> original values setbattleflag( "base_exp_rate",.exprate ); etc.. end; }
  15. make a new group in conf/group.conf and add the perm disable_pvm for this group https://github.com/rathena/rathena/blob/master/doc/permissions.txt#L95
  16. SELECT `id`,`name`,`ratio` FROM `pvpm_data` where `type` = '2' ORDER BY `ratio` < '"+.@1Lugar+"' DESC LIMIT 1 wrong query it should be SELECT `id`,`name`,`ratio` FROM `pvpm_data` where `type` = '2' and `ratio` < "+.@1Lugar+" ORDER BY `ratio` DESC LIMIT 1 btw why don't you use the array in the query? if ( getgmlevel() < 1 && compare( "louyang|job_wiz|kh_kiehl02",strcharinfo(3) ){// is on one of theses maps query_sql "SELECT `id`,`name` FROM `pvpm_data` where `type` = '2' ORDER BY `ratio` DESC LIMIT 3",.@Guild,.@Name$; setarray .@map$, "louyang", "job_wiz", "kh_kiehl02"; for ( .@i = 0; .@i < 3; .@i++ ) { if( strcharinfo(3) == .@map$[.@i] && strcharinfo(2) != getguildname(.@Guild[.@i]) ){ mes "[^FF8000Point Clã WOE^000000]"; mes "Para entra nesse mapa você precisa ser do clã ^FF8000"+.@Name$[.@i]+"^000000"; mes "Então você será teleportado para prontera!!"; close2; warp "prontera",150,150; end; } } }
  17. I guess it's about a bug in the event label use a longer label, like OnMobKilled instead of OnKilled
  18. strange it throws an infinity loop, there is a lot of free cell add a freeloop(1); OnInit: freeloop(1); while(1) {
  19. hmm maybe using OnTouch is a bit buggy well, try prt_fild01,1,1,0 script #dummy_light 111,{ end; OnAttach: addrid 1; getmapxy .@map_npc$,.@x_npc,.@y_npc,1; getmapxy .@map$,.@x,.@y,0; if ( distance( .@x_npc,.@y_npc,.@x,.@y ) < 2 ) unitkill getcharid(3); end; } - script main_bolt -1,{ OnInit: while(1) { do { .@x = rand(1,400); .@y = rand(1,400); } while( !checkcell( "prt_fild01",.@x,.@y,cell_chkpass ) ); movenpc "#dummy_light",.@x,.@y; enablenpc "#dummy_light"; specialeffect EF_LIGHTBOLT,AREA,"#dummy_light";// seems doesn't work with sprite -1 disablenpc "#dummy_light"; if ( getareausers( "prt_fild01",(.@x-1),(.@y-1),(.@x+1),(.@y+1) ) > 0 ) donpcevent "#dummy_light::OnAttach"; sleep 30000; } }
  20. Capuche

    Job changer

    this one is not the last one, there is an issue with this version. Whatever, just search jobchange : if (.@i==4001 && .LastJob) set lastJob, Class; jobchange .@i; if (.@i==4001 || .@i==4023) resetlvl(1); add resetstatus; if (.@i==4001 && .LastJob) set lastJob, Class; jobchange .@i; resetstatus; if (.@i==4001 || .@i==4023) resetlvl(1);
  21. this item si supposed to do sth other than increment CharRename variable ?
  22. well well you already have a sample in this script.. since it's script support here well what advise could I give you.. try something? and I will help you
  23. you posted your script in a spoil... it breaks the tab. I'm too lazy to redo them. GL
×
×
  • Create New...