morion
Inactive Member-
Posts
74 -
Joined
-
Last visited
-
Feedback
0%
About morion
Informations
-
Gender
Not Telling
Social Networks
-
Skype
sidhe_24
Recent Profile Visitors
2393 profile views
morion's Achievements
-
what kind of tutorial, without more informations is not possible help you...
-
ACMD(do_ban) { char arg1[256], arg2[256]; const char* name; const char* reason; if (!ch || ch->GetGMLevel() != GM_IMPLEMENTOR) { sys_log(0, "do_ban without rights %s[%d]", ch->GetName(), ch->GetPlayerID()); return; } two_arguments(argument, arg1, sizeof (arg1), arg2, sizeof(arg2)); if (!*arg1 || !*arg2) { ch->ChatPacket(CHAT_TYPE_INFO, "Correct command form: /ban <player name> <reason>"); return; } name = arg1; reason = arg2; LPDESC LDESC = DESC_MANAGER::instance().FindByCharacterName(name); LPCHARACTER LCHARACTER = LDESC ? LDESC->GetCharacter() : NULL; if (!LCHARACTER) { ch->ChatPacket(CHAT_TYPE_INFO, "%s not found.", name); return; } if (LCHARACTER == ch) { ch->ChatPacket(CHAT_TYPE_INFO, "You cant ban yourself!"); return; } if (LCHARACTER->GetGMLevel() >= GM_LOW_WIZARD) { ch->ChatPacket(CHAT_TYPE_INFO, "You cant do that."); return; } LCHARACTER = CHARACTER_MANAGER::instance().FindPC(name); DBManager::instance().DirectQuery("UPDATE account.account SET status = 'BLOCK' WHERE id = %d", LCHARACTER->GetAID()); DBManager::instance().DirectQuery("UPDATE player.player SET reason = %s WHERE id = %d", reason, LCHARACTER->GetAID()); LDESC->DelayedDisconnect(5); sys_log(0, "%s[%d] banned %s with reason: %s", ch->GetName(), ch->GetPlayerID(), name, reason); ch->ChatPacket(CHAT_TYPE_INFO, "%s was banned with reason: %s", name, reason); }
-
How compile this source?
-
[Hidden Content]
- 28 replies
-
- 56
-
Help! Limiting EXP by level range
morion replied to fcrdossantos's topic in Community Support - Questions & Answers
char_battle.cpp -
Bugs Limit Yang !
morion replied to testtesttest13's topic in Community Support - Questions & Answers
check syslog of server -
[Hidden Content] clear or not?
-
-4629785096512077824
morion replied to RealReznov's topic in Community Support - Questions & Answers
is not a poor fix, is a fix, the only reason to take gold value on create char query is if you enable gold on char create -
-4629785096512077824
morion replied to RealReznov's topic in Community Support - Questions & Answers
double reply -
-4629785096512077824
morion replied to RealReznov's topic in Community Support - Questions & Answers
is not mandatory set the gold value on player create query, simply delete gold field and value from query and set default value of Gold to 0 on table -
Hi i have this error when i try to drop a item 0220 12:54:51383 :: File "game.py", line 1396, in OnMouseLeftButtonUp 0220 12:54:51383 :: File "game.py", line 1433, in __PutItem 0220 12:54:51383 :: File "game.py", line 1508, in __DropItem 0220 12:54:51383 :: AttributeError 0220 12:54:51383 :: : 0220 12:54:51383 :: 'module' object has no attribute 'QuestionDialogItem' 0220 12:54:51383 ::
-
Searching for safe 40k serverfiles + client
morion replied to Veneno's topic in Paid Support / Searching / Recruiting
@martysama0134 is the way -
Hi devs I have a strange problem with the cube, if i put this CrystalCavern section npc 20022 item 23078 1 item 23079 1 item 23080 1 reward 23081 1 percent 100 end it works but if try this CrystalCavern section npc 20126 item 23078 1 item 23079 1 item 23080 1 reward 23081 1 percent 100 end with the same quest, it don't works.... syserr on client CPythonNetworkStream::ServerCommand(c_szCommand=cube r_list 20126 0 ) - Strange Parameter Count : 5 any help?