Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-28-2019, 12:47 AM
jsr
Hill Giant
 
Join Date: Aug 2008
Location: melbourne
Posts: 188
Default Advnpcspawn maketype error

This query is generating an error, but I can't see why based on the query that I think is doing the insert. The code has an int32 value of 28, but the error is showing 734375700. Any ideas?

Code:
query = StringFormat("

INSERT INTO npc_types 

(name, level, race, class, 
hp, gender, texture, helmtexture, 
size, loottable_id, merchant_id, face, 
runspeed, prim_melee_type, sec_melee_type) "

"VALUES(\"%s\", %i, %i, %i, %i, %i, %i, %i, %f, %i, %i, %i, %i, %i, %i)",

tmpstr, spawn->GetLevel(), spawn->GetRace(), spawn->GetClass(), 
spawn->GetMaxHP(), spawn->GetGender(), spawn->GetTexture(), spawn->GetHelmTexture(), 
spawn->GetSize(), spawn->GetLoottableID(), spawn->MerchantType, 0, 
spawn->GetRunspeed(), 28, 28);

Error:
Code:
[MySQL Error] 1264: Out of range value for column 'sec_melee_type' at row 1 
INSERT INTO npc_types 
(name, level, race, class, 
hp, gender, texture, helmtexture, 
size, loottable_id, merchant_id, face, 
runspeed, prim_melee_type, sec_melee_type) 

VALUES("a", 1, 1, 1, 
11, 0, 0, 0, 
6.000000, 0, 0, 0, 
0.000000, 28, 734375700)
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:52 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3