Jump to content

luzzo

Member
  • Posts

    89
  • Joined

  • Last visited

  • Days Won

    5
  • Feedback

    0%

luzzo last won the day on May 24 2015

luzzo had the most liked content!

1 Follower

About luzzo

  • Birthday 01/26/1993

Informations

  • Gender
    Male

Social Networks

Recent Profile Visitors

2828 profile views

luzzo's Achievements

Enthusiast

Enthusiast (6/16)

  • Reacting Well
  • Very Popular Rare
  • First Post
  • Collaborator
  • Conversation Starter

Recent Badges

188

Reputation

  1. You type quite right. So first of all be carefull doing query like this(that's and implicit join). Note: You have to specify table and attr to not be ambiguos. Anyway in your case: To Extract and update this is the right syntax: UPDATE mob_proto SET mob_proto.damage_min=(SELECT damage_min FROM mob_proto_copy WHERE mob_proto.vnum=mob_proto_copy.vnum); To check if all is gone well then type something like this: select vnum from mob_proto where NOT EXISTS(select * from mob_proto_copy where mob_proto.vnum = mob_proto_copy.vnum and mob_proto.damage_min = mob_proto_copy.damage_min);
  2. i see you have already corrected it.. I mean before you where returning 0 if n == 0 and that's ok but what i mean is that you should return if is not allowed number something like "" or better nil, so in this case you can check the function in an if statment before printing like: local numberconverted = intoroman(somenumber) if numberconverted then print(numberconverted) else print("i can't convert this number")
  3. Thats' a better solution without thousands loops.. [Hidden Content] According with lua syntax keep in mind is always better return same time. According with Romans enumeration you have to check the upperbound due to the ascii chars limit Anyway good job.
  4. Then compile your binary and try Let me know if it worked it will not. He have to add even this in PythonApplicationModule.cpp
  5. char_item.cpp case ITEM_AUTO_SP_RECOVERY_S:
  6. open cmd_general.cpp find if (ch->GetWarMap() && !ch->IsObserverMode()) some lines under this you have ch->ReviveInvisible(5); Here you set the invisible time.
  7. if you have guilds skillbooks you haven't added the controll that i wrote about it.
  8. my fail sorry. There is another part to modify. The fist one you edited is right and is for /do_book or for 50300 from box. The missing part is for 50300 drop on ground. Open item_manager.cpp search for if (vnum == 50300 || vnum == ITEM_SKILLFORGET_VNUM) and edit like this
  9. Obviously in this way you have the same drop percentage for each book but the game will do more clicle becase there is an hight range of non valid value.
  10. No there isn't. In the same funtion there is a check for a valid skill value. Or to be more clear you can even check that the type of skill is not 0 (like sun zii etc.) for example
  11. According with first problem, if you are talking about 50300 skillbook you can fix in this way Open char.cpp Find void CHARACTER::GiveRandomSkillBook() In this function you have to edit this dwSkillVnum = number(1, 111); changing 111 with last lycan's skill value
  12. You have to define in your launcher ENABLE_WOLFMAN_CHARACTER
  13. i try to be a bit more clear... This is some code(that you already have) from char_item.cpp Here there is the code about blocking potion in Arena map. First check if char is in arena map ** Second if arena_potion_limit flag is > 0 char can't use potion Third if arena_potion_limit flag is 0 or lower check for max use potion that you can set from arena_potion_limit_count flag **According with checking char in ArenaMap, game calls IsArenaMap function. Your problem is that your char isn't in ArenaMap How to add the right index for arena map? Wanderfull!We got the function! Well and how to call it from lua? That's Amazing! We have all we need! So we have to use arena.add_map! Settings.lua Replace arena.add_map(112, 8534, 101, 8564, 101) arena.add_map(112, 8584, 101, 8614, 101) arena.add_map(112, 8534, 155, 8564, 155) arena.add_map(112, 8584, 155, 8514, 155) with arena.add_map(322, 8534, 101, 8564, 101) arena.add_map(322, 8584, 101, 8614, 101) arena.add_map(322, 8534, 155, 8564, 155) arena.add_map(322, 8584, 155, 8514, 155)
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / 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.