cool release keep it up![]()
cool release keep it up![]()
ill be waiting![]()
toldja so :P
Edit:
Enter
' OR "a" in (select `name` from creature_names where `name` in (select `name` from creature_names)) and ''='
in any of the codeboxes to crash a server using this script
Last edited by Jotox; 07-30-2009 at 12:13 PM.
Jotox1 can you help me re-make this part like you said with atoi( string )?
QueryResult *rage1 = WorldDatabase.Query("Select `entry` FROM numbers where `entry` = '%s'", Code);
if(rage1)
{
Field *Fields = rage1->Fetch();
uint32 entry = Fields[0].GetUInt32();
Plr->SetUInt32Value(UNIT_FIELD_POWER2, entry);
Plr->SetUInt32Value(UNIT_FIELD_MAXPOWER2, entry);
CharacterDatabase.Execute("UPDATE characters SET current_power = %u WHERE guid = %u", entry, Plr->GetGUID());
Plr->Gossip_Complete();
}
thanks
Code:QueryResult *rage1 = WorldDatabase.Query("Select `entry` FROM numbers where `entry` = '%s'", Code); if(rage1) { Field *Fields = rage1->Fetch(); uint32 entry = Fields[0].GetUInt32(); Plr->SetUInt32Value(UNIT_FIELD_POWER2, entry); Plr->SetUInt32Value(UNIT_FIELD_MAXPOWER2, entry); CharacterDatabase.Execute("UPDATE characters SET current_power = %u WHERE guid = %u", entry, Plr->GetGUID()); Plr->Gossip_Complete(); }
would become
Code:uint32 entry = atoi(Code); if( !entry ) return; Plr->SetUInt32Value(UNIT_FIELD_POWER2, entry); Plr->SetUInt32Value(UNIT_FIELD_MAXPOWER2, entry); CharacterDatabase.Execute("UPDATE characters SET current_power = %u WHERE guid = %u", entry, Plr->GetGUID()); Plr->Gossip_Complete();
thanks man ill give it a go...
it works!!! omg Ive wanted this question answerd for so long!! no need for numbers table!! GM Stone 2.1 coming soon!!
thanks Jotox1 +rep for your help
I have now updated to 2.1, enjoy!!
Last edited by Zellcorp; 07-31-2009 at 05:39 AM.