Jump to content

bearnope246

Members
  • Posts

    94
  • Joined

  • Last visited

Everything posted by bearnope246

  1. i'm been using this code: guildjoin <guildid>,<charid>; it working for a few days... the character joined the guild. Now nothing happen, no error... just nothing
  2. Well, i'm posting the code here to asking if the code is wrong somewhere... The script i put in the npc is too simple ... one day it worked, now it's stop working, just asking again if the code broken somewhere...
  3. [solved] My client read data folder first, so it reading the old dress room lua file.... i didn't notice.
  4. How is this script work? guildjoin <guildid>,<charid>; ?? yes. Both parameters are required. This script is so unstable, some time it work, some time not... Could you check again for me please? thanks
  5. AlreadyI tried that too emistry.... Stat still not updated on login...
  6. Tried it. Every time i Relog Str got doubled... 1 2 4 816.... I think this kind of thing really need a source mod....
  7. Here it is :https://rathena.org/board/topic/53490-about-update-characters-status/
  8. I already tried that.. Nothing will change. Onpcloginevent and OnPCStatCalcEvent are the same.. they always run after status_calc_pc. I want it to calculated just like Item bonus... Right when they login.. So the stats bobus apply . Im using this to make a Guild bonus script. Anyone with the guildid will have bonus. It work but i must change map or equip something for the stat to appear..... I saw someone change the npc_script_event to runscript() and they said it worked... I tried that too but error say not enough argument....
  9. This means that this event will only be triggered OnLogin if your stats are recalculated. If your stats are never recalculated then this event will never be triggered. Well, if you need something to happen only on player's login then you should use OnPCLoginEvent instead of OnPCStatCalcEvent. Att, _Okuz_. if you use OnPCStatCalcEvent with a stat bonus like: OnPCStatCalcEvent: bonus bstr,10; This will run just like Onpcloginevent... but only after the stat is calculated first (Base stat, equipment, charm........) So if you logging in, the stat won't change to str + 10.... only if you change map or equip/unequip something then it will... i put in a dospbottom script to test.... i saw the it popup after a few sec, so i say that it run after status_calc_pc. So what i need is The bonus applied right away when i login....
  10. I'm using client 2015 11 04. NPC with script opendressroom(0); crash the client. I already have the Dress pack GRF....
  11. - script guildbonus -1,{ OnPCStatCalcEvent: bonus bStr, 30; } Simple, worked only when change map and change equip and other... But when login in the stat isnt change.... ?? Update: Ok i find out that status_calc_pc is executed first, and then >>>> npc event... I need a way to run npc_script_event(sd, NPCE_STATCALC); first... Or have to status_calc_pc vy script in game... right?
  12. Every other account and char can login, except for this one. When it login, charserver crashed... help?
  13. Any one got a working patch for latest ra? Too many errors.
  14. Im Using a rebirth system. Been trying to increase exp per reborn and reduce exp rate per char, but not working. Any one can help me?
  15. I can't find it anywhere. I can only find the Random +1 >> +10 or some enchant script that require only zeny.. I need a script that require orb item (4074 4075....) And the higher the orb, the less chance to success. The amor got destroy on fail. I don't know if there is any similar script already released?
  16. How is this script work? guildjoin <guildid>,<charid>; ??
  17. Where can i put the sprite... ex: where can i find the poring with bag sprite?
  18. So how to add Pet equipment? and it display on the pet? Do i need to make a different sprite for that pet when wearing equipment? Thanks
  19. Please help this to work with latest rathena. src/map/script.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/src/map/script.c b/src/map/script.c index be346cb..4d373bd 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -18508,10 +18508,36 @@ bool script_hp_add(char *name, char *args, bool (*func)(struct script_state *st) return script->add_builtin(&buildin, true); } +BUILDIN(guildjoin) { + int guild_id = script_getnum(st,2); + TBL_PC * sd; + struct guild * g; + if ( !( sd = map->charid2sd( script_getnum(st,3) ) ) ) { + script_pushint(st,-1); + return false; + } + if ( sd->status.guild_id ) { + script_pushint(st,-2); + return false; + } + if ( !( g = guild->search( guild_id ) ) ) { + script_pushint(st,-3); + return false; + } + if ( g->max_member >= MAX_GUILD ) { + script_pushint(st,-4); + return false; + } + sd->guild_invite = guild_id; + script_pushint( st, guild->reply_invite( sd, guild_id, 1 ) ); + return true; +} + #define BUILDIN_DEF(x,args) { buildin_ ## x , #x , args } #define BUILDIN_DEF2(x,x2,args) { buildin_ ## x , x2 , args } void script_parse_builtin(void) { struct script_function BUILDIN[] = { + BUILDIN_DEF(guildjoin,"ii"), // NPC interaction BUILDIN_DEF(mes,"s*"), BUILDIN_DEF(next,""),
  20. Your item_drop_card_max: is 10000. So even you set item_rate_card: 40000 it will still be 10000.
  21. sc_start SC_EXPBOOST,-1,-10; Will this work just like the field manual item? Reduce exp by 10%?
  22. Im on Pre-re. A 50 dex Crusader Magnum still miss on a 287 flee sinx. is that normal? Because now i now that Magnum isn't ignore flee, but only add final hitrates... case MS_MAGNUM: case SM_MAGNUM: hitrate += hitrate * 10 * skill_lv / 100;
  23. yes please, Where to edit it back to Re? I figured it out. Search for SC_EXTREMITYFIST2] in Script.c, Status.c,map.c,script_constants.h,skill.c,pc.c.... and comment: //#ifdef RENEWAL //#endif
×
×
  • Create New...