Jump to content

fusqueta

Members
  • Posts

    32
  • Joined

  • Last visited

Everything posted by fusqueta

  1. Yes, status.cpp, maybe https://github.com/rathena/rathena/blob/master/src/map/status.cpp#L5688 is what you're looking for
  2. I've been looking in the source a way to ends SG_MARIONETTE status when timer of skills is over. this is my skill_db but the status nevers ends, the function status_change_end_()(L#13010 on status.cpp) is not called when timer is over unless you got dipelled, out of range, logout etc. The timer counter ingame become negative BTW this is the SC_START of skill in skill.cpp L#6885 note skill_get_time(skill_id,skill_lv) is normally set on sc_start() call How can I made Marionette cancelable over time?
  3. I've been editing some jobs and everything works well, but when I use reset skills npc skills got stuck.
  4. wow, I was thinking about that, compendiuns got very popular lately on games, it's a way to tax for new contents monthly. Good work! Certainly I'm going to use this. @edit I'll try to improve to have free and vip rewards
  5. But I want to call a function from mobdeath event inside *monster command, not from item_db ty, anyway
  6. We have a field to call a function on monster death: <map name>{,<x>{,<y>{,<xs>{,<ys>}}}}%TAB%monster%TAB%<monster name>{,<monster level>}%TAB%<mob id>,<amount>{,<delay1>{,<delay2>{,<event>{,<mob size>{,<mob ai>}}}}} Event is a script event to be executed when the mob is killed. The event must be in the form "NPCName::OnEventName" to execute, and the event name label should start with "On". As with all events, if the NPC is an on-touch NPC, the player who triggers the script must be within 'trigger' range for the event to work. I want to call a event(or a function) with arguments/parameter like callfunc( "function",$parameter); Is it possible?
  7. I made it by source, it's ugly but works fine bool pc_unequipitem(struct map_session_data *sd, int n, int flag) { ... if (sd->inventory_data[n]->nameid == 2220 && !(flag & 2)) { clif_unequipitemack(sd, n, 0, 0); return false; }
  8. It's a good altenative, but I'm planning to add item script further on this, a flag disabling unequip would be perfect
  9. is there anyway to prevent to unequip a single item? I'll bind a visual effect to the item sprite and player cannot unequip it ps: I'm planning to execute a UnEquipScript to equip item again, but seems like a poor way to solve this problem, another better idea?
  10. I created a function on log.cpp that already have all mysql pre-configs needed void log_death(int charid, int16 m, int16 killertype, int killerid, int lasthit) { StringBuf_Init(&buf); StringBuf_Printf(&buf, "%s INTO `%s` ( `map`, `time`)", LOG_QUERY, "death_log"); StringBuf_Printf(&buf, "values ('%s',NOW() )", map_getmapdata(m)->name[0] ? map_getmapdata(m)->name : ""); if (SQL_SUCCESS != SqlStmt_PrepareStr(stmt, StringBuf_Value(&buf)) || SQL_SUCCESS != SqlStmt_Execute(stmt)) SqlStmt_ShowDebug(stmt); }
  11. ty for the answer, unfortunately I need to query from source
  12. I'v beem working on pc.cpp and I want to store death log into db when I try if (SQL_ERROR == Sql_Query(sql_handle, "Insert into death_log(char_id,killer_type,killer_id,map,time,lasthit) values(%d,'%s',%d,%d,'%s',%d)",150000,"BL_PC",150004,1,"20031020",1)) Sql_ShowDebug(sql_handle); Error C2065 'sql_handle': identifier not defined map-server D:\rathena\src\map\pc.cpp 8498 how setup db connection from pc.cpp ,skills.cpp ,stats.cpp etc and execute simple querys? "Insert into 'test'(testint) values (1)"
  13. check status.cpp void status_change_clear_buffs(struct block_list* bl, uint8 type) ... switch (i) { // Stuff that cannot be removed case SC_WEIGHT50: case SC_WEIGHT90: case SC_COMBO: case SC_SMA: ..... check if your buff is in list then comment with //
  14. I'm wondering and searching thru pk rathena source system and I think modifying it is the way to go(using karma points), Are you interested on a co-lab on this system?
  15. there is any script/source that implement skull system from tibia? https://tibia.fandom.com/wiki/Skull_System I'v been searching the last few days about this on google/forums and got nothing similar, someone interested on this project?
  16. is IgnoreDex,IgnoreStatus,IgnoreItemBonus set true?
  17. If the renew part of the file starts/stops at certain point of the file you can try "ctrl + shift + end" to select from the current point of cursor until the end or "ctrl + shift + home" to select from start point until the beginning is it your problem? if not please give us a more visual exemple
  18. tyvm for your reply where do I check version? the GIT hash is ad3f48f9ded76de3c25093ae8b70f0ddeab8caaa, I cloned from official repo ~3 weeks ago when "use_sql_db" is set to no, it uses the yaml files, I didn't applyed any patch, just imported "\rathena\sql-files" root files. what do you mean with patch? is it a upgrade sql like "\rathena\sql-files\upgrades\upgrade_20200821.sql"? or is it a new release of \rathena\sql-files root files like item_db.sql?
  19. This is tottaly wrong, that lines refers to UNT_GOSPEL, so you are modifying golspel bless, I'm looking for bless lines too right now, if I got it I'll edit here @edit You need to edit file status.cpp. If you wanna lv 10 bless give 20 stats so change sc->data[SC_BLESSING]->val2 to sc->data[SC_BLESSING]->val2 * 2
  20. It's done, someway how I got a decrypted jobinheritlist.lub. @Start_ the text insinde the file was just a bunch of random character and unkown symbols now it's pretty readable
  21. It's already extracted, I need to edit the file content like skilltreeview.lub, skilldescript.lub etc
×
×
  • Create New...