Search found 53 matches

by Avatarati
Sat Apr 23, 2016 2:21 am
Forum: Server Setup & Guides
Topic: Lowering the engage time after mob's death
Replies: 2
Views: 2756

Re: Lowering the engage time after mob's death

Look in src->map->ai->controllers->player_controller.cpp Find this: if (distance(PChar->loc.p, PTarget->loc.p) < 30) { if (m_LastAttackTime + std::chrono::milliseconds(PChar->GetWeaponDelay(false)) < server_clock::now()) { if (CController::Engage(targid)) { PChar->PLatentEffectContainer->CheckLatent...
by Avatarati
Sun Apr 17, 2016 8:19 am
Forum: Troubleshooting
Topic: Map-Encipher-Packet: Bad Packet From User
Replies: 1
Views: 1685

Re: Map-Encipher-Packet: Bad Packet From User

Updated my client and server files. Didn't realize there was a _1 version that came out after the April update.

I should have known better - when in doubt, do a check file.
by Avatarati
Sat Apr 16, 2016 1:29 pm
Forum: Troubleshooting
Topic: Map-Encipher-Packet: Bad Packet From User
Replies: 1
Views: 1685

Map-Encipher-Packet: Bad Packet From User

Hi again, Been getting this error today ever since Windower auto-updated. Had to reinstall Windower after the update actually because the game wouldn't even launch afterward. Saw this thread with the same problem in the title: https://forums.dspt.info/viewtopic.php?f=14&t=1654&hilit=map+encipher&sta...
by Avatarati
Sat Apr 16, 2016 5:45 am
Forum: Scripting
Topic: Change the Look of Mobs
Replies: 4
Views: 3308

Re: Change the Look of Mobs

Are there limitations to the model ID's you can assign to a mob? I was trying to make lower level bird NM's look like tulfaires. They have different family ID's, but they are both birds under the same family system. Whenever I use a tulfaire model ID on a bird NM, it crashes my client when I spawn it.
by Avatarati
Sat Apr 16, 2016 2:06 am
Forum: Scripting
Topic: Change the Look of Mobs
Replies: 4
Views: 3308

Re: Change the Look of Mobs

Oh, I see it now looking directly into the sql file. With entries like this: 0x01000D02DE104820483048404850B76000703B80 it's no wonder Navicat doesn't display it.

Thanks!
by Avatarati
Sat Apr 16, 2016 12:15 am
Forum: Contributing
Topic: Add linkpearl to new characters
Replies: 33
Views: 35644

Re: Add linkpearl to new characters

Sure thing! It's basically just a modified version of what the OP wrote. I call this code during a new player quest, so it's not auto-added to the character. Thanks to the original author of this. lua_baseentity.cpp inline int32 CLuaBaseEntity::addLinkshell(lua_State* L) { DSP_DEBUG_BREAK_IF(m_PBase...
by Avatarati
Fri Apr 15, 2016 1:10 pm
Forum: Scripting
Topic: Change the Look of Mobs
Replies: 4
Views: 3308

Change the Look of Mobs

Hello, I've seen other servers change the model ID's of regular monsters, such as making Robber Crabs look like Krabkatoa. Been trying to do it on my own server, but cannot figure out which table needs to be modified. I see a modelid column under mob_pools, but I cannot edit that field in Navicat. A...
by Avatarati
Fri Apr 15, 2016 11:58 am
Forum: Contributing
Topic: Add linkpearl to new characters
Replies: 33
Views: 35644

Re: Add linkpearl to new characters

I've been playing around with this all day and the only thing I can get to work is adding the correct linkpearl to characters. As far as auto-equipping it, I've tried several different ways and no results. The closest I got was by manually adding it to the char_equip table after retrieving the slot ...
by Avatarati
Wed Apr 13, 2016 5:38 am
Forum: Scripting
Topic: Trying to modify for trade on a NPC
Replies: 8
Views: 4471

Re: Trying to modify for trade on a NPC

You're on the right track now :) Still be careful with this though: function onTrade(player,npc,trade) local a = 0; if (player:getFreeSlotsCount() >= 1) then player:tradeComplete(); player:addItem(a); player:messageSpecial(ITEM_OBTAINED,a); end end; If the player trades something other than a Redemp...
by Avatarati
Wed Apr 13, 2016 1:25 am
Forum: Scripting
Topic: Trying to modify for trade on a NPC
Replies: 8
Views: 4471

Re: Trying to modify for trade on a NPC

You have three Boolean conditions in your if statement: 1) Does the player have 99 Heavy Metals? 2) Does the player have one Redemption? 3) Has the player given me 2 items total? The third Boolean is false because you are actually trading 100 items; therefore, the player has not met the conditions o...