Jump to content

jagodragon

Members
  • Posts

    11
  • Joined

  • Last visited

    Never
  • Donations

    0.00 GBP 

Everything posted by jagodragon

  1. OMG!!!!!! thak you!!! my wife was stuck in phase 2 and didn't know how to bring her back!!
  2. i am trying to add a function that will save a note for the gm in the ticket field. i have added all the requitred colums in the db and all of that but i am having a problem. i want this to be a subfunction of the ticket command so i need to either grab thre separate strings from the userinput of the command as so: .ticket note [ticket#] [note] or ask for a nother input from the user after the first as so: .ticket note [ticket#] [enter your note on the next line] this is the start to this in iether situation... //ticket note if(strncmp(px,"note",5) == 0) { uint32 *ticket_num = strtok(NULL, " "); if(!ticket_num) { SendSysMessage("Please enter a Ticket Number"); SendSysMessage("To find ticket number: .ticket listall"); SetSentErrorMessage(true); return false; } if any one could point me in the right direction i would appreciate it ps. i have got these sub commands done and altered the db for these modifications. .ticket listall - list all tickets .ticket listopen - lists all open tickets .ticket listclosed - lists all closed tickets .ticket listfollowup - lists all tickets flagged for followup .ticket close - closes a ticket without deleteing it from the db .ticket followup - flag a ticket for followup and removes the link to the player
  3. Thank you Vladimir for pointing that out. You are correct! i do not understand all of it... as i said in my first post i am very new at this and any help or pointers.. would be appreciated sinse i do not understand all of it, i tried to look at how it was done in twosided chat, then, as directed by you i treid to look at add friend and when i tried to use a similar fasion it would not compile correctly(i know this is an error on my part) So, i went back to the example that made sense to me and tried to use it again.. and, it did, some what.... at least it compiled... still can't trade but i now know that it is a client issue and that i need to trick the client into believing we are same faction. i do not wnat to do this in a way that make the server see me or the other player as unfriendly to our own factions though so i will belooking in to it more as i have free time thank you for trying to help me, i am sorry that i am so new at this and could not do what you thought i should have, but, i am trying to LEARN this
  4. ok.... that didn't work... attemp three and this one compiled soooo... lets see lol if (sWorld.getConfig(CONFIG_BOOL_ALLOW_TWO_SIDE_INTERACTION_TRADE)) return; else if (pOther->GetTeam() !=_player->GetTeam() ) { (SendTradeStatus(TRADE_STATUS_WRONG_FACTION)); return; } Edsit: nope... it's fail lol kinda figured... but hey atleast it compiled... besides.. i was told it was client side... so... i will always fail at this one... unless there is a way to fool the client into thinking both players are same faction during the trade?? any thoughts on that?
  5. sorry.. yeah i found it. can you look at this and tell me what you think? please [world.cpp] ... ] setConfig(CONFIG_BOOL_ALLOW_TWO_SIDE_INTERACTION_MAIL, "AllowTwoSide.Interaction.Mail", false); +++ ] setConfig(CONFIG_BOOL_ALLOW_TWO_SIDE_INTERACTION_TRADE, "AllowTwoSide.Interaction>trade", false); ... ] setConfig(CONFIG_BOOL_ALLOW_TWO_SIDE_WHO_LIST, "AllowTwoSide.WhoList", false); [world.h] ... ]enum eConfigBoolValues ... ]{ ... ] ... ] CONFIG_BOOL_ALLOW_TWO_SIDE_ADD_FRIEND, +++ ] CONFIG_BOOL_ALLOW_TWO_SIDE_TRADE, ... ] CONFIG_BOOL_INSTANCE_IGNORE_LEVEL, [tradehandler.cpp] --- ] if (pOther->GetTeam() !=_player->GetTeam() ) +++ ] if (pOther->GetTeam() != team && !sWorld.getConfig(CONFIG_BOOL_ALLOW_TWO_SIDE_INTERACTION_TRADE) && session->GetSecurity() < SEC_MODERATOR) <<<--- not sure about this? ... ] { ... ] SendTradeStatus(TRADE_STATUS_WRONG_FACTION); ... ] return; ... ] } [mangosd.conf.dist.in] ... ]AllowTwoSide.Interaction.Mail = 1 +++ ]AllowTwoSide.Interaction.TRADE = 1 ... ]AllowTwoSide.WhoList = 1
  6. wait... what file would that be in?
  7. thank you i will try to find it
  8. well... i compiled and tried.... it failed.. just like you said it would... but i am trying to learn, so some one please let give feedback?
  9. some on... any one... please just look at the code... i am not realy concerned with weather or not mangos wants to support it, or if client makes it not possible... i am more looking to see if any one can look at the code and "appraise" it? i am compiling now and hope i am not f***ing up my server.....
  10. thank you for the response.... can you tell me if this code is even right though? as i said, i am a complete newb to C++ edit.. i alos wanted to say that i love your signature lol
  11. i was wondering about adding a two sided trade option in the configs. that is one of the very few things i miss from arcemu so i started diggin and i have to say i am total newb but wanted to see if i was learning any thing so i tried. can you take a look and tell me how bad i did? [world.h] ... ]enum eConfigBoolValues ... ]{ ... ] ... ] CONFIG_BOOL_ALLOW_TWO_SIDE_ADD_FRIEND, +++ ] CONFIG_BOOL_ALLOW_TWO_SIDE_TRADE, ... ] CONFIG_BOOL_INSTANCE_IGNORE_LEVEL, [tradehandler.cpp] ... ] if (pOther->GetTeam() !=_player->GetTeam() ) ... ] { --- ] SendTradeStatus(TRADE_STATUS_WRONG_FACTION) --- ] return; +++ ] if (sWorld.getConfig(CONFIG_BOOL_ALLOW_TWO_SIDE_INTERACTION_TRADE)) +++ ] return; +++ ] else (SendTradeStatus(TRADE_STATUS_WRONG_FACTION); +++ ] return; ... ] } [mangosd.conf.dist.in] ... ]AllowTwoSide.Interaction.Mail = 1 +++ ]AllowTwoSide.Interaction.TRADE = 1 ... ]AllowTwoSide.WhoList = 1 the brackets are the files i moded and the "..." is lines before and after changes the "+++" are lines i added and the "---" are lines i removed... now i am sure this can't be right because i am as i said a complete newb and it only took me 45 minutes to do. this is my first attempt at an thing so be blunt but please don't flame too badly .
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use