-
Posts
43 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Everything posted by rizsu0107
-
Need help on GTB Script.
rizsu0107 replied to rizsu0107's topic in Tulong para sa Script at Database
Thank you so much! I have a custom weapon for the High Priest on my server that has a high chance of causing coma to players, which is why I was looking for the old behavior of the GTB. It is now completely blocking. Once again, thank you so much! -
The problem is that GTB doesn't block coma from item bonuses, but it can block skills like Tarot. The item bonuses that can't be blocked by GTB are as follows: bonus2 bComaClass,c,n; bonus2 bComaRace,r,n; bonus2 bWeaponComaEle,e,n; bonus2 bWeaponComaClass,c,n; bonus2 bWeaponComaRace,r,n; Status.cpp t_tick status_get_sc_def(struct block_list *src, struct block_list *bl, enum sc_type type, int rate, t_tick tick, unsigned char flag) { /// Resistance rate: 10000 = 100% /// Example: 50% (5000) -> sc_def = 5000 -> 25%; /// 5000ms -> tick_def = 5000 -> 2500ms int sc_def = 0, tick_def = -1; // -1 = use sc_def /// Fixed resistance value (after rate calculation) /// Example: 25% (2500) -> sc_def2 = 2000 -> 5%; /// 2500ms -> tick_def2=2000 -> 500ms int sc_def2 = 0, tick_def2 = 0; status_change *sc; map_session_data *sd; nullpo_ret(bl); if (src == nullptr) return tick?tick:1; // This should not happen in current implementation, but leave it anyway // Skills (magic type) that are blocked by Golden Thief Bug card or Wand of Hermod if (status_isimmune(bl)) { switch (type) { case SC_DECREASEAGI: case SC_SILENCE: case SC_COMA: case SC_INCREASEAGI: case SC_BLESSING: case SC_SLOWPOISON: case SC_IMPOSITIO: case SC_AETERNA: case SC_SUFFRAGIUM: case SC_BENEDICTIO: case SC_PROVIDENCE: case SC_KYRIE: case SC_ASSUMPTIO: case SC_ANGELUS: case SC_MAGNIFICAT: case SC_GLORIA: case SC_WINDWALK: case SC_MAGICROD: case SC_HALLUCINATION: case SC_STONE: case SC_QUAGMIRE: case SC_SUITON: case SC_SWINGDANCE: case SC_FIRE_INSIGNIA: case SC_WATER_INSIGNIA: case SC_WIND_INSIGNIA: case SC_EARTH_INSIGNIA: return 0; } std::shared_ptr<s_skill_db> skill = skill_db.find(battle_getcurrentskill(src)); if (skill == nullptr) // Check for ground-type skills using the status when a player moves through units skill = skill_db.find(status_db.getSkill(type)); if (skill != nullptr && skill->skill_type == BF_MAGIC && // Basic magic skill !skill->inf2[INF2_IGNOREGTB] && // Specific skill to bypass ((skill->inf == INF_ATTACK_SKILL || skill->inf == INF_GROUND_SKILL || skill->inf == INF_SUPPORT_SKILL) || // Target skills should get blocked even when cast on self (skill->inf == INF_SELF_SKILL && src != bl))) // Self skills should get blocked on all targets except self return 0; } My git version.
-
card deposit system like Ragnarok Mobile has
rizsu0107 replied to AinsLord's question in Script Requests
Can you DM me the full script too. Thanks in advance. -
-
Good day, in my script i encounter this error. I can't find a way to fix. - script Gold_Room_Max_Account -1,{ OnPCLoadMapEvent: if(getgmlevel() >= 99){ end; } set .@charmap$, strcharinfo(3); if(!compare(.tmp$, .@charmap$)) end; set .@len, query_sql("SELECT DISTINCT `account_id` FROM `char` WHERE `account_id` IN (SELECT `account_id` FROM `ragnarok_accounts`.`login` WHERE `last_ip` = (SELECT `last_ip` FROM `ragnarok_accounts`.`login` WHERE `account_id` = "+getcharid(3)+")) AND `online` <> 0;",.@a); for(set(.@d,0); .@d < .@len; set(.@d, .@d+1)) { if(!getmapxy(.@map$, .@x, .@y, BL_PC, rid2name(.@a[.@d])) && .@charmap$ == .@map$) set .@c, .@c + 1; } if(.@c > .limitacc ) { dispbottom "Maximum of 2 accounts are allowed in the Gold Room at a time!"; warp "thana_town", 100, 100; } end; OnInit: set .limitacc, 2; setarray .maps$, "rockrdg1"; set .lens, getarraysize(.maps$); for(set(.a, 0); .a < .lens; set(.a, .a+1)) { setmapflag .maps$[.a], mf_loadevent; set .tmp$, .tmp$ + .maps$[.a] + ","; } }
-
Opening OBB OPB Gift Box Drop item when your Inventory is Full
rizsu0107 replied to Bringer's question in Source Requests
if anyone still needs it. - Id: 617 AegisName: Old_Violet_Box Name: Old Purple Box Type: Usable Buy: 10000 Weight: 200 Flags: BuyingStore: true # Container: true Script: | getrandgroupitem(IG_VioletBox,1); -
- Id: 617 AegisName: Old_Violet_Box Name: Old Purple Box Type: Usable Buy: 10000 Weight: 200 Flags: BuyingStore: true # Container: true Script: | getrandgroupitem(IG_VioletBox,1);
-
Hello, can anyone please help me fix the warning and debug in this pvp script. Can't find a way to fix it, been searching on how to fix the warning and debug. here is the script. pvp_announcer_new.txt
-
Disable Skill when having 2 Items in inventory.
rizsu0107 replied to rizsu0107's topic in Tulong para sa Script at Database
-
Disable Skill when having 2 Items in inventory.
rizsu0107 replied to rizsu0107's topic in Tulong para sa Script at Database
-
Disable Skill when having 2 Items in inventory.
rizsu0107 replied to rizsu0107's topic in Tulong para sa Script at Database
-
Disable Skill when having 2 Items in inventory.
rizsu0107 replied to rizsu0107's topic in Tulong para sa Script at Database
-
- Id: 55073 AegisName: _Cocodrilo_Charm Name: Cocodrilo Charm Type: Charm Buy: 948 Weight: 10 Trade: NoSell: true NoDrop: true Script: | bonus bDef2,1; bonus bAllStats,5; bonus bAddMaxWeight,10000; bonus2 bAddClass,Class_All,10; bonus2 bMagicAddClass,Class_All,10; skill 257,5; skill 249,5; if ( countitem( 55073 ) >= 2){ message strcharinfo(0),"You can only use 1x "+getitemname(55073)+"! All same charm(s) has been disabled."; bonus bAllStats,-5; bonus bAddMaxWeight,-10000; bonus2 bAddClass,Class_All,-10; bonus2 bMagicAddClass,Class_All,-10; } Hello in my item script, I want to disable the skill 249,5; and skill 257,5; when a player have the same item. I tried disabling it with this skill 249,-5; also tried with skill 249,0; but nothing works.
-
Maximum HP Depending on base level
rizsu0107 replied to rizsu0107's topic in Tulong para sa Script at Database
solve! -
Maximum HP Depending on base level
rizsu0107 replied to rizsu0107's topic in Tulong para sa Script at Database
bump -
-
Thank you. I've been looking for something like this. thank you so much!
-
I don't receive any errors now. Thank you so much. Also my Woe Controller is Fixed thank you so much for this. Also, can I ask about this. It is not detecting the same user IP, if you don't mind :). - script No_Multiple_Accounts -1,{ OnPCLoadMapEvent: if( strcharinfo(3) == .Map$ ){ query_sql("SELECT `last_ip` FROM `ragnarok_accounts`.`login` WHERE `account_id` = "+getcharid(3)+"",.@IP ); query_sql("SELECT `account_id` FROM `ragnarok_accounts`.`login` WHERE `last_ip` = "+.@IP+"",.@Accountlist ); for( set .@i,0; .@i < getarraysize( .@Accountlist ); set .@i,.@i + 1 ) if( isloggedin( .@Accountlist[.@i] ) ) set .@DetectedOnline,.@DetectedOnline + 1; if( .@DetectedOnline > .Limit ){ mes "We detected there is "+.@DetectedOnline+" Users with same IP Logged in."; mes "Please log off these unused account."; close2; warp "thana_town",100,100; } } end; OnInit: // How many User with Same IP can logged in and stay at the specific map set .Limit,1; // What map will be restricted set .Map$,"jupe_ele"; setmapflag .Map$,mf_loadevent; end; }
-
-
I just copied this in Euphy's WOE Controller, the one that have " // " is the default, I just added the User `ragnarok_accounts` because I have multiple servers. It is also the same when the woe ends I receive SQL DB error too.
-
Hello, having trouble on this script, I really don't know how to fix it. Please help me! if (query_sql("USE `ragnarok_accounts` SELECT `last_ip` FROM `login` WHERE `account_id` = '" + .@aid[.@j] + "'", .@last_ip$) < 1) If I understand the query_sql correctly this is the setup just based on the script. ragnarok_accounts last_ip account_id
-
Yes, I did change it, 100 > 200 and I did recompile the server. but it still 100 max inventory capacity.
-
-
Hello, how can I change the inventory size of characters? I change the value of INVENTORY_BASE_SIZE 100 > 200 but nothing changes. Client Version: 2018-06-21 src/common/mmo.hpp
-
Oh that's why it is not working on normal chats anymore. thanks for the reply. So I need to make a source mod for the fontcolor. I just want to change the fontcolor of VIP players.