diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-12-24 07:14:20 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-12-24 07:14:20 -0300 |
commit | e90014e862ca97244f73c5c3ebbfa3b9c8373de4 (patch) | |
tree | 839c4260f65939be92ed83fcb46b93e607b7b2aa /npc/functions/hub.txt | |
parent | e6494d1ef2fd3e34f4c71a03a5ad9b7802c5b461 (diff) | |
download | serverdata-e90014e862ca97244f73c5c3ebbfa3b9c8373de4.tar.gz serverdata-e90014e862ca97244f73c5c3ebbfa3b9c8373de4.tar.bz2 serverdata-e90014e862ca97244f73c5c3ebbfa3b9c8373de4.tar.xz serverdata-e90014e862ca97244f73c5c3ebbfa3b9c8373de4.zip |
Add summoning scrolls (untested)
Diffstat (limited to 'npc/functions/hub.txt')
-rw-r--r-- | npc/functions/hub.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/npc/functions/hub.txt b/npc/functions/hub.txt index 5c926ccb5..8441436ac 100644 --- a/npc/functions/hub.txt +++ b/npc/functions/hub.txt @@ -386,8 +386,14 @@ function script HUB_SkillInvoke { // TODO: Detect what was script-cast and what was player-case. Then, readd RB_IRCBROADCAST // If you can't do this: You can't do this - if (getskilllv(@skillId) < @skillLv && @skillId != BS_GREED) - Exception("System ERROR, HSI."+@skillId+" INVALID CAST (got "+@skillLv+" expected "+getskilllv(@skillId)+", sub-LC."+(getcharid(3)-2000000)+")", RB_DEBUGMES|RB_ISFATAL); + if (getskilllv(@skillId) < @skillLv && @skillId != BS_GREED) { + // Is this ignorable? + if (@scriptsk) { + @scriptsk=false; + } else { + Exception("System ERROR, HSI."+@skillId+" INVALID CAST (got "+@skillLv+" expected "+getskilllv(@skillId)+", sub-LC."+(getcharid(3)-2000000)+")", RB_DEBUGMES|RB_ISFATAL); + } + } // You are AFK for over 3 minutes, that's crazy, disregard if (checkidle() > 180) return; |