-
Posts
509 -
Joined
-
Last visited
-
Days Won
7
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by Rynbef
-
-
-
@JHONDOMINICmaybe like this:
OnDeath: if(getcharid(0)) end; else if(killedrid >= 150000 || killerrid >= 150000) end; else { //do ur stuff } end;Rynbef~
-
@Sephiroth91Maybe try charcommand "@dailyreward";
This should exactly like typing in by keyboard.
Rynbef~
-
@Erossmaybe it use the twitter support of newer clients. Or a WebView. Idk if it is implemented yet if not it's could be an extension injected as dll file in the client.
In my opinion one of the hackshield does support WebView but idk which one.
Rynbef~
-
1
-
-
-
@Sephiroth91Try to change:
bindatcmd("dailyreward",strnpcinfo(3)+"::OnLoginCmnd",0,99);
To:
bindatcmd("dailyreward",strnpcinfo(3)+"::OnLoginCmnd");
Or if it won't work:
bindatcmd("dailyreward","LOGIN::OnLoginCmnd");
Rynbef~
-
@ErossTest the modification on both and then let me know if it works or not.
Rynbef~
-
@acaciomilkI've optimized u're script a bit.
NOTE: I can't test it yet but it's should work.
Suggestions: Use close2; to close the dialog and afterwards u can kick player or else cause he will keep attached to the script. Then end; the script.
I can recommend to use switch(getgmlevel()) instead of calling so much script labels.
U readparam before checking it and call it in the if statement again. This makes no sense if u don't store it in an array or variable.
On the event labels u used close; but there was no dialog therefore its causes errors. U need to end; the script.
Don't declair labels inside an if statement. U're own labels needs to declaired like the default labels "OnInit" or "OnPCLoginEvent".
The close2; is better if u give/delete items or set variables cause auto-close can be abused.
Rynbef~
-
1
-
-
Oh my mistake. Change:
if(!attachedrid())
To:
if(!getattachedrid())
Rynbef~
-
2 hours ago, thebloodlust said:
Hi all. I hope you are all well. I have been trying to edit the visual item description but I cannot find that txt file. I just want to edit the scripts written on items as well as the visible item slot. I managed to edit the item to have slots in the item_db_equip but visually they remain the same. Take note I have hired someone to set up the server and I am trying to edit things myself.
Change the slot amount at the item_db_equip.yml at ur server and the visual slots at the iteminfo.lub located in ur ragnarok folder. Notice that u've to patch the iteminfo.lub to every user so they can see it too.
Rynbef~
-
@Sephiroth91Try to add this above to ur item:
callfunc "REWARDCMD",getcharid(3);
And use this modified version (not tested):
Rynbef~
-
@Akbaremaybe remove "disable_items;" after:
mes "Requirements:";
Normally it blocks changing equipment while talking to npc but it could be possible that it couldn't count ur item because it is an equipment item.
Rynbef~
-
1
-
-
-
-
1
-
-
@ErossPls let us know this at the begin of ur request than it will be much easier to help u.
In ur case it begin at line 4134. I've already changed everything and attached the changed file.
Rynbef~
-
@Sephiroth91Rename the Label by replacing all OnLoginCmnd to OnCommandLogin. Than call cmdothernpc "LOGIN","Login";
Don't forget to replace every label calls like Bindcommand and else.
Rynbef~
-
-
-
@Sephiroth91Maybe add this on ur item:
cmdothernpc "<npc name>","<command>"; This is simply "donpcevent <npc name>::OnCommand<command>". It is an approximation of official server script language's 'cmdothernpc'. Returns true if the command was executed on the other NPC successfully, false if not
Rynbef~
-
-
@ErossAt src/map/mob.cpp on line 4544 it begins.
Just change:
mob->status.str = max(1, stat);
To:
mob->status.str = max(1, (stat*6));
And the same on the other stats below the other stats.
Attack change on line 4452 from:
mob->status.rhw.atk = atk;
To:
mob->status.rhw.atk = atk*6;
Defense change on line 4486 from:
def = cap_value(def, DEFTYPE_MIN, DEFTYPE_MAX);
To:
def = cap_value(def*6, DEFTYPE_MIN, DEFTYPE_MAX);
Recompile ur server after.
Ps: NOT TESTED!!
Rynbef~
-
1
-
1
-
-
@Yuna @arcada Pease post ur pet script here. That we can take a look on it to solve the problem maybe.
petloot <max items>;
This command will turn on pet looting, with a maximum number of items to loot
specified. Pet will store items and return them when the maximum is reached or
when pet performance is activated.
Source: https://raw.githubusercontent.com/rathena/rathena/master/doc/script_commands.txt
Maybe add on the Egg on OnEquip part or on the "Script: >" part of the pet "petloot <max items>;"
Rynbef~
-
Maybe put it at "Sctipt: >" the petloot n; or put it on the Egg on the OnEquip part.
petloot <max items>; This command will turn on pet looting, with a maximum number of items to loot specified. Pet will store items and return them when the maximum is reached or when pet performance is activated.
References under 10.1 at https://raw.githubusercontent.com/rathena/rathena/master/doc/script_commands.txt
Rynbef~
-
@BlazingSpearpls let other users know how u solved ur problem if someone have similar interests.
I don't but maybe other members? Why don't close this with your solution. That's the kind of community who's everyone likes.
Rynbef~


Stolao's Daily Login Reward call with item
in Scripting Support
Posted · Edited by Rynbef
@Sephiroth91
1st suggestion change:
bindatcmd("dailyreward",strnpcinfo(3)+"::OnLoginCmnd");
To:
bindatcmd("dailyreward",strnpcinfo(3)+"::OnLoginCmnd",0,0);
2nd suggestion: U've also tested with my function? This function attach the player and use the command.
Rynbef~